ID: 45579 Updated by: [EMAIL PROTECTED] Reported By: f dot zwegers at scouting dot nl -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Linux PHP Version: 5.2.6 New Comment:
Come back when you can provide a short reproducing script. Previous Comments: ------------------------------------------------------------------------ [2008-07-28 09:38:00] f dot zwegers at scouting dot nl I can only reproduce it using the entire PHP script... however on my local test environment (PHP 5.2.5) the error doesn't occur. ------------------------------------------------------------------------ [2008-07-21 16:05:29] [EMAIL PROTECTED] $ php -r '$result["[EMAIL PROTECTED]"] = "foo"; var_dump($result);' array(1) { ["[EMAIL PROTECTED]"]=> string(3) "foo" } Works fine. Now you should propably provide the short but complete reproduce script.. ------------------------------------------------------------------------ [2008-07-21 10:41:33] f dot zwegers at scouting dot nl Description: ------------ I want to add the e-mailaddress [EMAIL PROTECTED] to an array like $result['[EMAIL PROTECTED]'] = 'foo'; PHP exits with the message Fatal error: Allowed memory size of 57671680 bytes exhausted (tried to allocate 987654323 bytes) in /usr/local/raksha-dev2/lib/php/sol/as/as_form/model/as_form.php on line 734 Note that the memory that PHP tries to allocate is almost exactly the numeric part of the address! This also works when permutating the numbers. Reproduce code: --------------- $result['[EMAIL PROTECTED]'] = 'foo'; Expected result: ---------------- array ( ['[EMAIL PROTECTED]'] => 'foo ) Actual result: -------------- Fatal error: Allowed memory size of 57671680 bytes exhausted (tried to allocate 987654323 bytes) in /usr/local/raksha-dev2/lib/php/sol/as/as_form/model/as_form.php on line 734 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45579&edit=1