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
==30684== Conditional jump or move depends on uninitialised value(s)
==30684== at 0x4C29190: malloc (vg_replace_malloc.c:298)
==30684== by 0xE7DBE0: __zend_malloc (zend_alloc.h:97)
==30684== by 0xE8256E: _emalloc (zend_alloc.c:2427)
==30684== by 0x8B12AE: zif_ldap_connect (ldap.c:375)
==30684== by 0xF44E9F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==30684== by 0xF50662: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==30684== by 0xF429CD: execute_ex (zend_vm_execute.h:363)
==30684== by 0xF435A6: zend_execute (zend_vm_execute.h:388)
==30684== by 0xED8585: zend_execute_scripts (zend.c:1341)
==30684== by 0xDF831C: php_execute_script (main.c:2613)
==30684== by 0x1089EB6: do_cli (php_cli.c:998)
==30684== by 0x108B79B: main (php_cli.c:1382)
==30684==
==30684== Conditional jump or move depends on uninitialised value(s)
==30684== at 0xDFC4C9: strx_printv (snprintf.c:1219)
==30684== by 0xDFC837: ap_php_snprintf (snprintf.c:1275)
==30684== by 0x8B138D: zif_ldap_connect (ldap.c:380)
==30684== by 0xF44E9F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==30684== by 0xF50662: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==30684== by 0xF429CD: execute_ex (zend_vm_execute.h:363)
==30684== by 0xF435A6: zend_execute (zend_vm_execute.h:388)
==30684== by 0xED8585: zend_execute_scripts (zend.c:1341)
==30684== by 0xDF831C: php_execute_script (main.c:2613)
==30684== by 0x1089EB6: do_cli (php_cli.c:998)
==30684== by 0x108B79B: main (php_cli.c:1382)
==30684==
==30684== Conditional jump or move depends on uninitialised value(s)
==30684== at 0xDF9C64: format_converter (snprintf.c:637)
==30684== by 0xDFC532: strx_printv (snprintf.c:1230)
==30684== by 0xDFC837: ap_php_snprintf (snprintf.c:1275)
==30684== by 0x8B138D: zif_ldap_connect (ldap.c:380)
==30684== by 0xF44E9F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==30684== by 0xF50662: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==30684== by 0xF429CD: execute_ex (zend_vm_execute.h:363)
==30684== by 0xF435A6: zend_execute (zend_vm_execute.h:388)
==30684== by 0xED8585: zend_execute_scripts (zend.c:1341)
==30684== by 0xDF831C: php_execute_script (main.c:2613)
==30684== by 0x1089EB6: do_cli (php_cli.c:998)
==30684== by 0x108B79B: main (php_cli.c:1382)
==30684==
==30684== Conditional jump or move depends on uninitialised value(s)
==30684== at 0xDFC304: format_converter (snprintf.c:1188)
==30684== by 0xDFC532: strx_printv (snprintf.c:1230)
==30684== by 0xDFC837: ap_php_snprintf (snprintf.c:1275)
==30684== by 0x8B138D: zif_ldap_connect (ldap.c:380)
==30684== by 0xF44E9F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==30684== by 0xF50662: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==30684== by 0xF429CD: execute_ex (zend_vm_execute.h:363)
==30684== by 0xF435A6: zend_execute (zend_vm_execute.h:388)
==30684== by 0xED8585: zend_execute_scripts (zend.c:1341)
==30684== by 0xDF831C: php_execute_script (main.c:2613)
==30684== by 0x1089EB6: do_cli (php_cli.c:998)
==30684== by 0x108B79B: main (php_cli.c:1382)
==30684==
==30684== Conditional jump or move depends on uninitialised value(s)
==30684== at 0xDFC54D: strx_printv (snprintf.c:1231)
==30684== by 0xDFC837: ap_php_snprintf (snprintf.c:1275)
==30684== by 0x8B138D: zif_ldap_connect (ldap.c:380)
==30684== by 0xF44E9F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==30684== by 0xF50662: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==30684== by 0xF429CD: execute_ex (zend_vm_execute.h:363)
==30684== by 0xF435A6: zend_execute (zend_vm_execute.h:388)
==30684== by 0xED8585: zend_execute_scripts (zend.c:1341)
==30684== by 0xDF831C: php_execute_script (main.c:2613)
==30684== by 0x1089EB6: do_cli (php_cli.c:998)
==30684== by 0x108B79B: main (php_cli.c:1382)
==30684==
==30684== Conditional jump or move depends on uninitialised value(s)
==30684== at 0xDFC56C: strx_printv (snprintf.c:1231)
==30684== by 0xDFC837: ap_php_snprintf (snprintf.c:1275)
==30684== by 0x8B138D: zif_ldap_connect (ldap.c:380)
==30684== by 0xF44E9F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==30684== by 0xF50662: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==30684== by 0xF429CD: execute_ex (zend_vm_execute.h:363)
==30684== by 0xF435A6: zend_execute (zend_vm_execute.h:388)
==30684== by 0xED8585: zend_execute_scripts (zend.c:1341)
==30684== by 0xDF831C: php_execute_script (main.c:2613)
==30684== by 0x1089EB6: do_cli (php_cli.c:998)
==30684== by 0x108B79B: main (php_cli.c:1382)
==30684==
Generated at Mon, 16 Apr 2018 16:12:41 +0000 (8 days ago)
|