php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10682 php -l display the same errors
Submitted: 2001-05-05 19:44 UTC Modified: 2001-05-05 20:22 UTC
From: yohgaki at hotmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (05/05/2001) OS: RedHat Linux 7.0.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yohgaki at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-05-05 19:44 UTC] yohgaki at hotmail dot com
If I execute CGI php binary with "-l" option, I see the same error message 3 times in different formats. 

===================
PHP Parse error:  parse error, expecting `T_VARIABLE' or `'$'' in php_lint.php on line 5
<br>
<b>Parse error</b>:  parse error, expecting `T_VARIABLE' or `'$'' in <b>php_lint.php</b> on line <b>5</b><br>
php_lint.php(5) : Parse error - parse error, expecting `T_VARIABLE' or `'$''
[www@dev language]$ php -ql php_lint.php
PHP Parse error:  parse error, expecting `T_VARIABLE' or `'$'' in php_lint.php on line 5
<br>
<b>Parse error</b>:  parse error, expecting `T_VARIABLE' or `'$'' in <b>php_lint.php</b> on line <b>5</b><br>
php_lint.php(5) : Parse error - parse error, expecting `T_VARIABLE' or `'$''
=====================

./configure \
--disable-short-tags \
--disable-mysql \
--without-pear \
--without-mysql \
--enable-debug \
--enable-bcmath  \
--enable-ftp \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-debug \
--enable-memory-limit \
--with-regex=system \
--with-openssl \
--with-iconv \
--with-imap \
--with-mhash \
--with-mcrypt \
--with-pgsql \
--with-swf \
--with-zlib \
--with-bz2 \
--with-gd \
--with-jpeg-dir=/usr \
--with-xpm-dir=/usr/X11R6


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-05 20:22 UTC] zeev@php.net
As funny as it may sound, it's the intended behavior, if:
- You have a debug build (an error goes to stderr)
- You have display_errors set to on (an error goes to the standard output, HTML format)
- You have error logging enabled (default goes to stderr)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC