From:             a dot schat at streamedge dot com
Operating system: Linux
PHP version:      4.3.1
PHP Bug Type:     Compile Failure
Bug description:  Parse error: parse error, unexpected $ in ... on line 642

Description:
------------
Parse error: parse error, unexpected $ in /useradmin.inc.php on line 642
It gives this error on: linux, php 4.3.1, Apache/1.3.27
But not on Windows NT localhost 5.1 build 2600,  php 4.3.1, Apache/
Apache/1.3.24

Note the comment tags before the line of code. If I put a block comment
around it, the error is gone.

Reproduce code:
---------------
//$updateform.= "<tr><td width=10%></td><td><input type=\"radio\"
name=\"usertype\" value=\"user\" checked
onclick=\"javascript:showLayer('rest2".$counter."');\"></td><td><input
type=\"radio\" name=\"usertype\" value=\"administrator\"
onclick=\"javascript:hideLayer('rest2".$counter."');\"></td></tr>";


Expected result:
----------------
Php should ignore this line right? 

Actual result:
--------------
Parse error: parse error, unexpected $ in /useradmin.inc.php on line 642

This is the last line of the document

-- 
Edit bug report at http://bugs.php.net/?id=25256&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25256&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25256&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25256&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25256&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25256&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25256&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25256&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25256&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25256&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25256&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25256&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25256&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25256&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25256&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25256&r=gnused

Reply via email to