From: mwease at tx dot rr dot com Operating system: Universal PHP version: 5.3.0 PHP Bug Type: Unknown/Other Function Bug description: "Parse Error" not a meaningful/helpful error message
Description: ------------ deficiency: an error message saying "parse error" on a given line is ridiculously insufficient. the interpreter knows that there is a problem and MUCH more precisely what the problem is. in some instances, stating that something is missing or "expected" is helpful, but it is not believable to me that the real problem cannot be identified so that the "programmer" can understand what needs to be done to fix the error. It's crazy to require the programmer to "parse" the "bad" line of code manually/humanly to figure out what the problem is when software (this interpreter) already knows there is a problem, what it is, and has identified it. at LEAST provide a postion within the line, saying something at LEAST like "Expecting something else". in addition, presuming that some unrecognizable "word" that is, in my case, actually a variable lacking the "$" in front and just replacing it with "NULL" and moving on is NOT helpful. it's almost indifferent to the suffering! the interpreter should at LEAST say something about it!! bottom line: DON'T JUST TELL ME THAT THERE IS A PROBLEM ON A PARTICULAR LINE, TELL ME WHAT THE PROBLEM IS EVERY TIME AND DO NOT ASSUME ANYTHING!!!! -- Edit bug report at http://bugs.php.net/?id=49316&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49316&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49316&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49316&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49316&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49316&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49316&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49316&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49316&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49316&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49316&r=support Expected behavior: http://bugs.php.net/fix.php?id=49316&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49316&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49316&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49316&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49316&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49316&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49316&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49316&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49316&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49316&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49316&r=mysqlcfg