#36793 [Opn->WFx]: Some objects become corrupted after 32767 instantiations
| From: | mike@php.net | Date: | Sun, 19 Mar 2006 23:17:25 +0000 |
| Subject: | #36793 [Opn->WFx]: Some objects become corrupted after 32767 instantiations | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94580@lists.php.net to get a copy of this message | ||
ID: 36793
Updated by: mike@php.net
Reported By: twm at twmacinta dot com
-Status: Open
+Status: Wont fix
Bug Type: Scripting Engine problem
Operating System: RHEL ES 3 update 7
PHP Version: 4.4.2
New Comment:
Sorry, won't get fixed for PHP-4.
Previous Comments:
------------------------------------------------------------------------
[2006-03-20 00:05:14] twm at twmacinta dot com
Description:
------------
Hello,
I have a set of two classes which are used together and which work fine
initially but which result in memory corruption after being instantiated
32767 times. I have attached the URL of a sample script which
demonstrates the problem since I wasn't able to reproduce it in 20
lines or less. I ran the program through Valgrind to see if it could
ferret out more specifics, but it didn't report any errors.
Thanks,
- Tim Macinta
Reproduce code:
---------------
http://www.twmacinta.com/php_bugs/object_corruption_20060319.php.txt
Expected result:
----------------
Start
Middle: 0
Middle: 10000
Middle: 20000
Middle: 30000
...
Middle: 9999999
End
Actual result:
--------------
Start
Middle: 0
Middle: 10000
Middle: 20000
Middle: 30000
Middle: 32761
Middle: 32762
Middle: 32763
Middle: 32764
Middle: 32765
Middle: 32766
foo was not defined
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36793&edit=1