#44824 [Opn->Fbk]: parse error from comment string

From: Date: Thu, 24 Apr 2008 21:48:27 +0000
Subject: #44824 [Opn->Fbk]: parse error from comment string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124498@lists.php.net to get a copy of this message
ID: 44824 Updated by: felipe@php.net Reported By: pfenderd at bellsouth dot net -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: windows XP Pro PHP Version: 5.2.5 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2008-04-24 20:46:30] pfenderd at bellsouth dot net 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 <jorge.lopez@gmail.com> * * @author Robert "Littleguy" Shubert <anyman@abcdefgh.se> * @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 this bug report at http://bugs.php.net/?id=44824&edit=1

« previous php.bugs (#124498) next »