php-developer-list | 2001041
Date: 04/12/01
- Next message: derick <email protected>: "[PHP-DEV] Bug #10313 Updated: ROUND inconsistency"
- Previous message: thies <email protected>: "[PHP-DEV] Bug #10318 Updated: pathinfo causes network error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 10311
Updated by: cnewbill
Reported By: slyder <email protected>
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
PHP Version: 4.0.4pl1
Assigned To:
Comments:
This is expected behavior. Not a bug.
The part of the expression that is causing the problem is ?>. Try just having // ?>, it will do the same thing. PHP interprets this as the end of the code block.
An example of why this is so:
<?php print $value; // print value ?>
-Chris
Previous Comments:
---------------------------------------------------------------------------
[2001-04-12 15:50:12] slyder <email protected>
//$line = preg_replace("/<?[ _0-9A-Za-z$?&"=;]+QBUYURLQ[ _0-9A-Za-z$?&"=;]+?>/", $buyurl, $line);
ok pretend thats all one line. the problem is that when using c++ style comments, I get a parse error @ line [length of file + 1]. using c style comments makes it go away. the point of the code it was to replace the php part of a line that contained QBUYURLQ in it w/ just the url. it's no longer needed, but took a while to figure out that a comment was generating a parse error :)
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10311&edit=2
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: derick <email protected>: "[PHP-DEV] Bug #10313 Updated: ROUND inconsistency"
- Previous message: thies <email protected>: "[PHP-DEV] Bug #10318 Updated: pathinfo causes network error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

