Bug #51690 [Opn->Ver]: Phar::setStub looks for case-sensitive __HALT_COMPILER()
| From: | felipe@php.net | Date: | Thu, 29 Apr 2010 22:44:21 +0000 |
| Subject: | Bug #51690 [Opn->Ver]: Phar::setStub looks for case-sensitive __HALT_COMPILER() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150039@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51690&edit=1
ID: 51690
Updated by: felipe@php.net
Reported by: vrana@php.net
Summary: Phar::setStub looks for case-sensitive
__HALT_COMPILER()
-Status: Open
+Status: Verified
Type: Bug
Package: PHAR related
Operating System: Any
PHP Version: 5.3.2
Previous Comments:
------------------------------------------------------------------------
[2010-04-29 06:27:36] 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"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51690&edit=1