|
Posted by Oliver Grδtz on 11/22/07 01:09
Rik Wasmus schrieb:
>> A "php -l" did not yield a parsing error AND the file is 692 lines long
>> (not 638) AND it is not matching the filename from the error message, so
>> I doubt the file in question was attached...
>
> Hmmm, don't know where something went different, a php -l here gave me a:
> Parse error: syntax error, unexpected '}' in G:\Personal\quiztaker.php on
> line 648
# php4 -v
PHP 4.4.7-0.dotdeb.0 with Suhosin-Patch 0.9.6 (cli) (built: May 9 2007
16:38:02)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
# php4 -l quiztaker.php
No syntax errors detected in quiztaker.php
# php -v
PHP 5.2.5-0.dotdeb.0 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 12
2007 19:09:20)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
# php -l quiztaker.php
No syntax errors detected in quiztaker.php
> php -v
PHP 5.2.1 (cli) (built: Feb 7 2007 23:11:26)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.0.0, Copyright (c) 2002, 2003, 2004, 2005, 2006,
2007, by Derick Rethans
>php -l quiztaker.php
No syntax errors detected in quiztaker.php
No problems here, not with PHP4 nor PHP5, and not on win32.
I even changed the file from CR+LF to just LF, no change.
Have to mark this as WORKSFORME ;-)
OLLi
--
Programming is an art form that fights back.
Navigation:
[Reply to this message]
|