From: [EMAIL PROTECTED] Operating system: PHP version: 5.3CVS-2008-09-11 (CVS) PHP Bug Type: SPL related Bug description: SplFileInfo::openFile - memory overlap
Description: ------------ ==906== Source and destination overlap in memcpy(0x6777400, 0x6777400, 32) ==906== at 0x4022ED6: memcpy (mc_replace_strmem.c:116) ==906== by 0x83FDED2: _estrndup (zend_alloc.c:2444) ==906== by 0x84286C5: add_assoc_stringl_ex (zend_API.c:1157) ==906== by 0x8274E3F: spl_filesystem_object_get_debug_info (spl_directory.c:548) ==906== by 0x8361F20: php_var_dump (var.c:128) ==906== by 0x836229C: zif_var_dump (var.c:178) ==906== by 0x845468F: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:315) ==906== by 0x84427B2: execute (zend_vm_execute.h:104) ==906== by 0x841CC2E: zend_execute_scripts (zend.c:1197) ==906== by 0x83C22CC: php_execute_script (main.c:2075) ==906== by 0x84B4C0C: main (php_cli.c:1130) Reproduce code: --------------- <?php $x = new splfileinfo(__FILE__); try { $x->openFile(NULL, NULL, NULL); } catch (Exception $e) { } var_dump($x->getPathName()); Expected result: ---------------- string(32) "/home/felipe/public_html/bug.php" Actual result: -------------- string(32) "e/felipe/public_html/bug.php" -- Edit bug report at http://bugs.php.net/?id=46051&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46051&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46051&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46051&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46051&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46051&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46051&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46051&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46051&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46051&r=support Expected behavior: http://bugs.php.net/fix.php?id=46051&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46051&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46051&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46051&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46051&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46051&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46051&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46051&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46051&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46051&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46051&r=mysqlcfg