php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vrana@php.net
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-30 00:44 UTC] felipe@php.net
-Status: Open +Status: Verified
 [2010-05-03 16:41 UTC] iliaa@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=298908
Log: Fixed bug #51690 (Phar::setStub looks for case-sensitive __HALT_COMPILER())
 [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
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 09:01:28 2024 UTC