#45579 [NEW]: Fatal error: memory exhausted for e-mail with numeric user-part

From: Date: Mon, 21 Jul 2008 10:41:33 +0000
Subject: #45579 [NEW]: Fatal error: memory exhausted for e-mail with numeric user-part
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127042@lists.php.net to get a copy of this message
From: f dot zwegers at scouting dot nl Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Arrays related Bug description: Fatal error: memory exhausted for e-mail with numeric user-part Description: ------------ I want to add the e-mailaddress 987654321@scouting.nl to an array like $result['987654321@scouting.nl'] = '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['987654321@scouting.nl'] = 'foo'; Expected result: ---------------- array ( ['987654321@scouting.nl'] => '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 bug report at http://bugs.php.net/?id=45579&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45579&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45579&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45579&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45579&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45579&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45579&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45579&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45579&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45579&r=support Expected behavior: http://bugs.php.net/fix.php?id=45579&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45579&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45579&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45579&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45579&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45579&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45579&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45579&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45579&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45579&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45579&r=mysqlcfg

« previous php.bugs (#127042) next »