Bug #79362 [NEW]: In a phar file, __halt_compiler fails if lowercase
| From: | aine at exivity dot com | Date: | Tue, 10 Mar 2020 13:30:07 +0000 |
| Subject: | Bug #79362 [NEW]: In a phar file, __halt_compiler fails if lowercase | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-226004@lists.php.net to get a copy of this message | ||
From: aine at exivity dot com
Operating system: Windows
PHP version: 7.3.15
Package: Compile Failure
Bug Type: Bug
Bug description:In a phar file, __halt_compiler fails if lowercase
Description:
------------
---
From manual page: https://php.net/function.halt-compiler
---
In the PHP docs, __half_compiler is lowercase, but if this is used in a
phar file, it breaks:
PHP Fatal error: Uncaught PharException: manifest cannot be larger than
100 MB in phar "/build/myphar.phar" in /build/myphar.phar:9
It needs to be uppercase. Then it works.
Is it possible for it to work in lowercase inside a phar file?
Test script:
---------------
stub.php:
<?php __halt_compiler();
build:
$phar = new Phar('myphar');
$phar->setStub(file_get_contents('stub.php'));
Run the built file.
--
Edit bug report at https://bugs.php.net/bug.php?id=79362&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79362&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79362&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79362&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79362&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79362&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79362&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79362&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79362&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79362&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79362&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79362&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79362&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79362&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79362&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79362&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79362&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79362&r=mysqlcfg