#31070 [Opn->Fbk]: Possible integer overflow
ID: 31070
Updated by: sniper@php.net
Reported By: dennis at inmarket dot lviv dot ua
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Linux
PHP Version: 5.0.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-12-13 15:23:55] dennis at inmarket dot lviv dot ua
Description:
------------
I believe this is related to bug 28945, but it is in No Feedback mode,
and I could not contact him to reopen it.
It OCASSIONALLY happens in my app (it is a large set of classes), and
writes to the error log even more amazing thing: here is the sample
error log entry:
[12-Nov-2004 15:50:52] PHP Fatal error: Possible integer overflow in
memory allocation (24 * 4294967295 + 0) in /**
* Returns a SQLDataBase implementation for database $name
*
* @param string $name database name
* @return SQLDataBase a SQLDataBase implementation for database
$name
*/ on line 11
The file that this scratch is ripped from is class definition, where no
memory allocation takes place (this is an abstract class)
Reproduce code:
---------------
It is not possible to reproduce this bug, it is a big set of classes
(about 170Kb source code), but it is caused by the engine I believe
(judging from how the error is reported)
Expected result:
----------------
At least the error log should be:
[12-Nov-2004 15:50:52] PHP Fatal error: Possible integer overflow in
memory allocation (24 * 4294967295 + 0) in <filename> on <line number>
Actual result:
--------------
12-Nov-2004 15:50:52] PHP Fatal error: Possible integer overflow in
memory allocation (24 * 4294967295 + 0) in /**
* Returns a SQLDataBase implementation for database $name
*
* @param string $name database name
* @return SQLDataBase a SQLDataBase implementation for database
$name
*/ on line 11
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31070&edit=1
Thread (4 messages)