#20035 [NEW]: __LINE__ miscounts with #!/path/php scripts

From: Date: Wed, 23 Oct 2002 00:34:54 +0000
Subject: #20035 [NEW]: __LINE__ miscounts with #!/path/php scripts
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23079@lists.php.net to get a copy of this message
From: befletch@yahoo.com Operating system: OpenBSD 3.1 PHP version: 4.2.3 PHP Bug Type: Scripting Engine problem Bug description: __LINE__ miscounts with #!/path/php scripts The built-in variable __LINE__ undercounts by 1 on command-line scripts that begin with a #!path-to-php line. For example: #!/usr/local/bin/php -q <?php echo "Line 3 reports ".__LINE__."\n"; ?> This script will output: Line 3 reports 2 This issue also applies to (at least) some other 4.1+ releases. -- Edit bug report at http://bugs.php.net/?id=20035&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20035&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20035&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20035&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20035&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20035&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20035&r=support Expected behavior: http://bugs.php.net/fix.php?id=20035&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20035&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20035&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20035&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20035&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20035&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20035&r=isapi

« previous php.bugs (#23079) next »