ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#44824 [Opn->Csd]: parse error from comment string
by jani other posts by this author
Apr 25 2008 1:16PM messages near this date
#44824 [NEW]: parse error from comment string | #44824 [Fbk->Opn]: parse error from comment string
ID:               44824
 Updated by:       jani@[...].net
 Reported By:      pfenderd at bellsouth dot net
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: windows XP Pro
 PHP Version:      5.2.5


Previous Comments:
------------------------------------------------------------------------

[2008-04-25 18:10:52] pfenderd at bellsouth dot net

I tried the latest CVS snapshot (4/24) and did not see the problem.

------------------------------------------------------------------------

[2008-04-24 21:48:27] felipe@[...].net

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



------------------------------------------------------------------------

[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@[...].com> 
 *
 * @author Robert "Littleguy" Shubert <anyman@[...].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
Thread:
Pfenderd At Bellsouth Dot Net
jani
Pfenderd At Bellsouth Dot Net
felipe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved