setStub looks for case-sensitive __HALT_COMPILER()
| Bug #51690 | Phar::setStub looks for case-sensitive __HALT_COMPILER() | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-04-29 06:27 UTC | Modified: | 2010-05-03 16:41 UTC | ||
| From: | vrana@php.net | Assigned: | iliaa (profile) | ||
| Status: | Closed | Package: | PHAR related | ||
| PHP Version: | 5.3.2 | OS: | Any | ||
| Private report: | No | CVE-ID: | None | ||
[2010-04-29 06:27 UTC] vrana@php.net
Description:
------------
Functions in PHP are case-insensitive. This is valid also for __HALT_COMPILER(). Phar::setStub however looks for case-sensitive variant.
Test script:
---------------
$phar = new Phar("resource.phar");
try {
$phar->setStub("<?php __halt_compiler();");
} catch (Exception $e) {
echo get_class($e) . ": " . $e->getMessage() . "\n";
}
Expected result:
----------------
Nothing
Actual result:
--------------
PharException: illegal stub for phar "C:/Download/resource.phar"
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-05-03 16:41 UTC] iliaa@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: iliaa
[2010-05-03 16:41 UTC] iliaa@php.net