|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79362 In a phar file, __halt_compiler fails if lowercase
Submitted: 2020-03-10 13:30 UTC Modified: 2020-06-17 11:28 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: aine at exivity dot com Assigned: cmb (profile)
Status: Not a bug Package: PHAR related
PHP Version: 7.3.15 OS: Windows
Private report: No CVE-ID: None
 [2020-03-10 13:30 UTC] aine at exivity dot com
From manual page:

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:

<?php __halt_compiler();

$phar = new Phar('myphar');

Run the built file.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-10 13:47 UTC]
-Package: Compile Failure +Package: PHAR related
 [2020-06-17 11:28 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2020-06-17 11:28 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

See <>.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Sep 22 18:03:35 2021 UTC