Edit report at http://bugs.php.net/bug.php?id=51690&edit=1
ID: 51690 Updated by: il...@php.net Reported by: vr...@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] il...@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] vr...@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