Bug #62737 [PATCH]: Segfault invoking SplFileInfo->openFile

From: Date: Sat, 04 Aug 2012 15:13:57 +0000
Subject: Bug #62737 [PATCH]: Segfault invoking SplFileInfo->openFile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-172435@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62737&edit=1 ID: 62737 Patch added by: laruence@php.net Reported by: leight at gmail dot com Summary: Segfault invoking SplFileInfo->openFile Status: Analyzed Type: Bug Package: Reproducible crash Operating System: Linux / OSX PHP Version: master-Git-2012-08-03 (Git) Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: bug62737.patch Revision: 1344093237 URL: https://bugs.php.net/patch-display.php?bug=62737&patch=bug62737.patch&revision=1344093237 Previous Comments: ------------------------------------------------------------------------ [2012-08-04 02:58:23] laruence@php.net I split the "dangling pointer" bug out to #62744, we can look at this one after we fixed that one. ------------------------------------------------------------------------ [2012-08-03 16:27:55] laruence@php.net Actually, I have improved the patch, and I don't know what's your test script? get_class_vars("splFileObject")? you can try with the new patch. ------------------------------------------------------------------------ [2012-08-03 16:23:54] laruence@php.net sure, I am still working on this, thanks ------------------------------------------------------------------------ [2012-08-03 16:21:25] laruence@php.net The following patch has been added/updated: Patch Name: ChangeDisableClassHandler.patch Revision: 1344010885 URL: https://bugs.php.net/patch-display.php?bug=62737&patch=ChangeDisableClassHandler.patch&revision=1344010885 ------------------------------------------------------------------------ [2012-08-03 15:43:01] reeze dot xia at gmail dot com Hi, by replace create_object function pointer and free function table isn't enough, after apply the patch, I got this, maybe more handlers need to be replaced and cleanup. Fatal error: Uncaught exception 'RuntimeException' with message 'get_class_vars() expects exactly 1 parameter, 2 given' in /Users/reeze/Opensource/php-test/php-src-5.3-dev/xx.php:6 Stack trace: #0 [internal function]: SplFileObject->get_class_vars('/bin/ls', 'r') #1 /Users/reeze/Opensource/php-test/php-src-5.3-dev/xx.php(6): SplFileInfo- >openFile('r') #2 {main} thrown in /Users/reeze/Opensource/php-test/php-src-5.3-dev/xx.php on line 6 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62737 -- Edit this bug report at https://bugs.php.net/bug.php?id=62737&edit=1

« previous php.bugs (#172435) next »