From:             ortho at mail dot dk
Operating system: RH 9.0
PHP version:      4.3.10
PHP Bug Type:     Scripting Engine problem
Bug description:  ignore comment and drop out php mode

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

-- 
Edit bug report at http://bugs.php.net/?id=32487&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32487&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32487&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32487&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32487&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32487&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32487&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32487&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32487&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32487&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32487&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32487&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32487&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32487&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32487&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32487&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32487&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32487&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32487&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32487&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32487&r=mysqlcfg

Reply via email to