From: pfenderd at bellsouth dot net Operating system: windows XP Pro PHP version: 5.2.5 PHP Bug Type: Compile Failure Bug description: parse error from comment string
Description: ------------ The PHP parser produced output to the web page starting in the middle of a multi-line comment. The trigger was a '>' at the end of a line of comment text. All text after that character became output, even though it was within the <?php and ?> tags. There were two email addresses, but the problem began at the end of the second email address string. (see example below) I previously used this code in PHP 5.1.6 with no problem. The code was included from a file with a require_once statement. (The names in the example are fictitious.) Reproduce code: --------------- <?php /** * This file contains the XYZ class, "xyz" * Licensed under the BSD license * All credits to abcdefgh(http://www.abcdefgh.se/) * for letting this code out in the free where it belongs! * * Contributions made by: * Jorge Lopez <[EMAIL PROTECTED]> * * @author Robert "Littleguy" Shubert <[EMAIL PROTECTED]> * @version 0.1 * @package AB-XYZ */ ?> Expected result: ---------------- No output. The parser should not have stopped parsing PHP code until the ?> string was reached. Actual result: -------------- * @version 0.1 * @package AB-XYZ */ ?> Error undefined class .... -- Edit bug report at http://bugs.php.net/?id=44824&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44824&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44824&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44824&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44824&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44824&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44824&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44824&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44824&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44824&r=support Expected behavior: http://bugs.php.net/fix.php?id=44824&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44824&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44824&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44824&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44824&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44824&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44824&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44824&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44824&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44824&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44824&r=mysqlcfg
