php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58042 using rewrite parameter to webPhar causes memory error
Submitted: 2008-02-12 20:03 UTC Modified: 2008-03-22 17:56 UTC
From: stas at zend dot com Assigned: cellog (profile)
Status: Closed Package: phar (PECL)
PHP Version: 5_2 CVS-2008-02-12 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stas at zend dot com
New email:
PHP Version: OS:

 

 [2008-02-12 20:03 UTC] stas at zend dot com
Description:
------------
Using the stub code below, I get the following error when running phar file:

Fatal error:  Out of memory (allocated 786432) at /php5/ext/phar/phar_object.c:96 (tried to allocate 4294967283 bytes) in /var/www/html/app.phar.tar.php on line 4

Reproduce code:
---------------
$a->setStub("<?php
function rw(\$a) { return '/html/index.php'; }
Phar::interceptFileFuncs();
Phar::webPhar('$file.phar', '/html/index.php', null, array(), 'rw');
echo 'ZFApp is intended to be executed from a web browser\n';
exit -1;
__HALT_COMPILER();
");



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-22 17:56 UTC] greg at chiaraquartet dot net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC