ID: 47948 Updated by: fel...@php.net Reported By: ehassler at synapsestudios dot com -Status: No Feedback +Status: Feedback Bug Type: Reproducible crash Operating System: * PHP Version: 5.2.9 New Comment:
Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-04-20 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-04-16 19:38:27] ehassler at synapsestudios dot com I tried throwing together a chain of call_user_func_array and autoloads to cause the problem (3 deep), but it didn't. Thusfar the only way I can reproduce the error is through the whole codebase we're working on... Perhaps I can revisit this at project completion to try and pare down to a usable example script. ------------------------------------------------------------------------ [2009-04-12 23:03:27] j...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2009-04-11 02:49:38] ehassler at synapsestudios dot com Description: ------------ In Vista with PHP 5.2.6 and 5.2.9 and in CentOS with PHP 5.2.6 we encountered an error where, a call_user_func_array without class_exists called before it causes the following error message: Fatal error: Possible integer overflow in memory allocation (4 * 3080682076 + 0) In the windows environment, it just crashes our local instances of Apache, but in Linux we get this error message. Prefacing the call_user_func_array with a class_exists causes the crash/error to not occur. If we do not preface it, or if we add the extra argument to not autoload, then the crash/error occurs again. We tried to reproduce the error by having two files, one with the class, the other with an autoload function and the call to call_user_func_array, and this did NOT cause a crash. In our environment where the error actually occurred, the autoloaded file would have causes several other classes to autoload, so perhaps this is more relevant to the bug than simple autoloading. Actual result: -------------- Fatal error: Possible integer overflow in memory allocation (4 * 3080682076 + 0) in /var/www/phxphp.com/svn/trunk/application/models/upload_type.php on line 49 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47948&edit=1