Bug #51690 [Ver->Csd]: Phar::setStub looks for case-sensitive __HALT_COMPILER()
| From: | iliaa@php.net | Date: | Mon, 03 May 2010 14:41:55 +0000 |
| Subject: | Bug #51690 [Ver->Csd]: Phar::setStub looks for case-sensitive __HALT_COMPILER() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150126@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: iliaa@php.net
Reported by: vrana@php.net
Summary: Phar::setStub looks for case-sensitive
__HALT_COMPILER()
-Status: Verified
+Status: Closed
Type: Bug
Package: PHAR related
Operating System: Any
PHP Version: 5.3.2
-Assigned To:
+Assigned To: iliaa
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-05-03 16:41:42] iliaa@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=298908
Log: Fixed bug #51690 (Phar::setStub looks for case-sensitive
__HALT_COMPILER())
------------------------------------------------------------------------
[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