#46844 [Ctl->Csd]: First line of included files not output if they begin with #
ID: 46844
Updated by: iliaa@php.net
Reported By: phildriscoll@php.net
-Status: Critical
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Ubuntu Gutsy
PHP Version: 5.3.0alpha3
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-12-29 12:52:01] johannes@php.net
That should be fixed for 5.3.
------------------------------------------------------------------------
[2008-12-17 02:45:55] jani@php.net
I was kinda hoping it was some CLI/CGI thing only. :)
------------------------------------------------------------------------
[2008-12-16 18:41:52] phildriscoll@php.net
Yes Jani - my test setup has PHP compiled as an Apache2 module.
------------------------------------------------------------------------
[2008-12-16 18:20:41] jani@php.net
I can reproduce this with CLI and CGI, but does it happen also with
f.e. Apache SAPIs?
------------------------------------------------------------------------
[2008-12-12 11:51:56] phildriscoll@php.net
Description:
------------
5.3.0alpha3 does not output the first line of an included script if
the line begins with #. Earlier versions of PHP
(prior to 5.3.0alpha1) do output first lines beginning with #.
Reproduce code:
---------------
test.php
<?php
include_once('test.inc');
?>
test.inc
#1
#2
#3
Expected result:
----------------
#1
#2
#3
Actual result:
--------------
#2
#3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46844&edit=1
Thread (8 messages)