ID: 47948 Updated by: j...@php.net Reported By: ehassler at synapsestudios dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: * PHP Version: 5.2.9 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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