#22097 [NEW]: Eval fails to process this gem.

From: Date: Thu, 06 Feb 2003 22:43:29 +0000
Subject: #22097 [NEW]: Eval fails to process this gem.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32330@lists.php.net to get a copy of this message
From: tdrake@tymail.com Operating system: Linux x86 2.4.18 PHP version: 4.3.0 PHP Bug Type: Scripting Engine problem Bug description: Eval fails to process this gem. $error["1231"] = "invalid"; $error["1255"] = "invalid_max"; $invalid = 'You did not choose a valid quantity for item number $item.\n'; $invalid_min = 'You did not order the minimum amount for item $item.\n'; $invalid_max = 'You ordered more than you were permitted for item $item.\n'; while (list($item, $errortype) = each($error)) { eval("\$errormessage .= \"$$errortype\";"); } print $errormessage; Eval prints the following: You did not choose a valid quantity for item number $item. You ordered more than you were permitted for item $item. It should print this: You did not choose a valid quantity for item number 1231. You ordered more than you were permitted for item 1255. -- Edit bug report at http://bugs.php.net/?id=22097&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22097&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22097&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22097&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22097&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22097&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22097&r=support Expected behavior: http://bugs.php.net/fix.php?id=22097&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22097&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22097&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22097&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22097&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22097&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22097&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22097&r=gnused

« previous php.bugs (#32330) next »