PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/ldap/tests/ldap_connect_variation.phpt ('ldap_connect() - Variation')

Script

1: <?php
2:
require "connect.inc";
3:
4:
// no hostname, no port
5:
$link ldap_connect();
6:
var_dump($link);
7:
8:
// no port
9:
$link ldap_connect($host);
10:
var_dump($link);
11:
12:
// URI
13:
$link ldap_connect("ldap://$host:$port");
14:
var_dump($link);
15:
16:
// URI no port
17:
$link ldap_connect("ldap://$host");
18:
var_dump($link);
19:
20:
// bad hostname (connect should work, not bind)
21:
$link ldap_connect("nonexistent" $host);
22:
var_dump($link);
23:
24:
// Legacy host:port syntax
25:
$link ldap_connect("$host:$port");
26:
var_dump($link);
27:
?>
28:
===DONE===
29:

Report

==31262== Conditional jump or move depends on uninitialised value(s)
==31262==    at 0x4C29190: malloc (vg_replace_malloc.c:298)
==31262==    by 0xE7DC06: __zend_malloc (zend_alloc.h:97)
==31262==    by 0xE82594: _emalloc (zend_alloc.c:2427)
==31262==    by 0x8B12DA: zif_ldap_connect (ldap.c:375)
==31262==    by 0xF44EC5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==31262==    by 0xF50688: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==31262==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==31262==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==31262==    by 0xED85AB: zend_execute_scripts (zend.c:1341)
==31262==    by 0xDF8342: php_execute_script (main.c:2613)
==31262==    by 0x1089EDC: do_cli (php_cli.c:998)
==31262==    by 0x108B7C1: main (php_cli.c:1382)
==31262== 
==31262== Conditional jump or move depends on uninitialised value(s)
==31262==    at 0xDFC4EF: strx_printv (snprintf.c:1219)
==31262==    by 0xDFC85D: ap_php_snprintf (snprintf.c:1275)
==31262==    by 0x8B13B9: zif_ldap_connect (ldap.c:380)
==31262==    by 0xF44EC5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==31262==    by 0xF50688: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==31262==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==31262==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==31262==    by 0xED85AB: zend_execute_scripts (zend.c:1341)
==31262==    by 0xDF8342: php_execute_script (main.c:2613)
==31262==    by 0x1089EDC: do_cli (php_cli.c:998)
==31262==    by 0x108B7C1: main (php_cli.c:1382)
==31262== 
==31262== Conditional jump or move depends on uninitialised value(s)
==31262==    at 0xDF9C8A: format_converter (snprintf.c:637)
==31262==    by 0xDFC558: strx_printv (snprintf.c:1230)
==31262==    by 0xDFC85D: ap_php_snprintf (snprintf.c:1275)
==31262==    by 0x8B13B9: zif_ldap_connect (ldap.c:380)
==31262==    by 0xF44EC5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==31262==    by 0xF50688: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==31262==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==31262==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==31262==    by 0xED85AB: zend_execute_scripts (zend.c:1341)
==31262==    by 0xDF8342: php_execute_script (main.c:2613)
==31262==    by 0x1089EDC: do_cli (php_cli.c:998)
==31262==    by 0x108B7C1: main (php_cli.c:1382)
==31262== 
==31262== Conditional jump or move depends on uninitialised value(s)
==31262==    at 0xDFC32A: format_converter (snprintf.c:1188)
==31262==    by 0xDFC558: strx_printv (snprintf.c:1230)
==31262==    by 0xDFC85D: ap_php_snprintf (snprintf.c:1275)
==31262==    by 0x8B13B9: zif_ldap_connect (ldap.c:380)
==31262==    by 0xF44EC5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==31262==    by 0xF50688: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==31262==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==31262==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==31262==    by 0xED85AB: zend_execute_scripts (zend.c:1341)
==31262==    by 0xDF8342: php_execute_script (main.c:2613)
==31262==    by 0x1089EDC: do_cli (php_cli.c:998)
==31262==    by 0x108B7C1: main (php_cli.c:1382)
==31262== 
==31262== Conditional jump or move depends on uninitialised value(s)
==31262==    at 0xDFC573: strx_printv (snprintf.c:1231)
==31262==    by 0xDFC85D: ap_php_snprintf (snprintf.c:1275)
==31262==    by 0x8B13B9: zif_ldap_connect (ldap.c:380)
==31262==    by 0xF44EC5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==31262==    by 0xF50688: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==31262==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==31262==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==31262==    by 0xED85AB: zend_execute_scripts (zend.c:1341)
==31262==    by 0xDF8342: php_execute_script (main.c:2613)
==31262==    by 0x1089EDC: do_cli (php_cli.c:998)
==31262==    by 0x108B7C1: main (php_cli.c:1382)
==31262== 
==31262== Conditional jump or move depends on uninitialised value(s)
==31262==    at 0xDFC592: strx_printv (snprintf.c:1231)
==31262==    by 0xDFC85D: ap_php_snprintf (snprintf.c:1275)
==31262==    by 0x8B13B9: zif_ldap_connect (ldap.c:380)
==31262==    by 0xF44EC5: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==31262==    by 0xF50688: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==31262==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==31262==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==31262==    by 0xED85AB: zend_execute_scripts (zend.c:1341)
==31262==    by 0xDF8342: php_execute_script (main.c:2613)
==31262==    by 0x1089EDC: do_cli (php_cli.c:998)
==31262==    by 0x108B7C1: main (php_cli.c:1382)
==31262== 

 

Generated at Mon, 16 Jul 2018 23:50:59 +0000 (4 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.