ID: 36793 Updated by: [EMAIL PROTECTED] Reported By: twm at twmacinta dot com Status: Wont fix Bug Type: Scripting Engine problem Operating System: RHEL ES 3 update 7 PHP Version: 4.4.2 New Comment:
You can't. This is a PHP4 limitation. Please search the bug system or the mailing list archives for "refcount" and "short int". Previous Comments: ------------------------------------------------------------------------ [2006-03-20 00:31:32] twm at twmacinta dot com Hello, OK, thanks for letting me know. Could you give me more information on what the core problem is so that I can try to avoid it? Thanks, - Tim Macinta ------------------------------------------------------------------------ [2006-03-20 00:17:24] [EMAIL PROTECTED] Sorry, won't get fixed for PHP-4. ------------------------------------------------------------------------ [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