Bug #79362 [Opn->Nab]: In a phar file, __halt_compiler fails if lowercase

From: Date: Wed, 17 Jun 2020 11:28:53 +0000
Subject: Bug #79362 [Opn->Nab]: In a phar file, __halt_compiler fails if lowercase
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227523@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79362&edit=1 ID: 79362 Updated by: cmb@php.net Reported by: aine at exivity dot com Summary: In a phar file, __halt_compiler fails if lowercase -Status: Open +Status: Not a bug Type: Bug Package: PHAR related Operating System: Windows PHP Version: 7.3.15 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php See <https://www.php.net/manual/en/phar.fileformat.stub.php>. Previous Comments: ------------------------------------------------------------------------ [2020-03-10 13:30:07] aine at exivity dot com 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 this bug report at https://bugs.php.net/bug.php?id=79362&edit=1

« previous php.bugs (#227523) next »