|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-29 17:51 UTC] tony2001@php.net
[2005-03-29 18:08 UTC] ortho at mail dot dk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 19:00:01 2025 UTC |
Description: ------------ when encountering code below, php 1) ignores the comment 2) apparently leave php-mode note: error 2) makes the rest of the php-script code show up in browser (as result of leaving php) Reproduce code: --------------- // $Idxhtm = str_replace('<?php print $I_fmGetpage; ?>', '#pgnum', $Idxhtm)); notes: allthouh it is commented out, the code intended to replace a php-tag in a string containing a html form. The php-tag is single quoted and should be replaced with #pgnum - no fuzz. removing commented line solves problem. Expected result: ---------------- nuthin - it should be regarded as a comment by php Actual result: -------------- sleepless hours - dry throat - nervous breakdown and backpain