From:             ehassler at synapsestudios dot com
Operating system: Vista, CentOS
PHP version:      5.2.9
PHP Bug Type:     Reproducible crash
Bug description:  call_user_func_array with autoload causes crash

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 bug report at http://bugs.php.net/?id=47948&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47948&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47948&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47948&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47948&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47948&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47948&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47948&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47948&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47948&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47948&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47948&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47948&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47948&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47948&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47948&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47948&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47948&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47948&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47948&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47948&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47948&r=mysqlcfg

Reply via email to