#32734 [NEW]: Support for #line pragma, as in C and Perl

From: Date: Sun, 17 Apr 2005 06:47:01 +0000
Subject: #32734 [NEW]: Support for #line pragma, as in C and Perl
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77671@lists.php.net to get a copy of this message
From: php at koterov dot ru Operating system: all PHP version: 5.0.4 PHP Bug Type: Feature/Change Request Bug description: Support for #line pragma, as in C and Perl Description: ------------ C, C++ and Perl support the folowing feature: // start of file #line 20 "test.c" something #line 30 "test.c" other // end of file If error is generated into code "something", it is reported as error "in test.c on line 20" - NOT on line 3! For code "other" - "in test.c on line 30". The same Perl code example: ### start of file #line 20 "test.c" warn "something"; #line 30 "test.c" warn "other"; ### end of file Result is: something at test.c line 20. other at test.c line 30. Unfortunately PHP does not support this useful feature, and because of that any template engines with pre-compilation (e.g. Smarty) make the life not so pleasant as it could be. Do you plan to add #line feature in future versions of PHP? Programmers need it very much! -- Edit bug report at http://bugs.php.net/?id=32734&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32734&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32734&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32734&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32734&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32734&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32734&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32734&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32734&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32734&r=support Expected behavior: http://bugs.php.net/fix.php?id=32734&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32734&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32734&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32734&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32734&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32734&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32734&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32734&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32734&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32734&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32734&r=mysqlcfg

« previous php.bugs (#77671) next »