Bug #71151 [NEW]: File which contains only "<?php" isn't interpreted
| From: | daniel dot korner at tu-dortmund dot de | Date: | Thu, 17 Dec 2015 19:04:33 +0000 |
| Subject: | Bug #71151 [NEW]: File which contains only "<?php" isn't interpreted | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-197971@lists.php.net to get a copy of this message | ||
From: daniel dot korner at tu-dortmund dot de
Operating system: Linux 4.2.5-1-Arch
PHP version: 7.0.1
Package: *General Issues
Bug Type: Bug
Bug description:File which contains only "<?php" isn't interpreted
Description:
------------
By accident I created a file that only contains "<?php". This file has
no space, line break or other character following after the last "p". In
this case, the php interpreter does not interpret the file and simply
returns the string "<?php".
If I then add a space, line break or other whitespace character after
the last "p", the interpreters starts to interpret the .php file
correctly and returns an empty string.
I could reproduce this behaviour with PHP 7.0.0 and PHP 7.0.1 but not
with PHP 5.6.16 on a Computer running Linux (4.2.5-1-ARCH x86_64).
--
Edit bug report at https://bugs.php.net/bug.php?id=71151&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71151&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71151&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71151&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71151&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71151&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71151&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71151&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71151&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71151&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71151&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71151&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71151&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71151&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71151&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71151&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71151&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71151&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71151&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71151&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71151&r=mysqlcfg