php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63112 PharException when compiling
Submitted: 2012-09-18 16:22 UTC Modified: 2012-09-20 03:00 UTC
From: bbialek at smartertravelmedia dot com Assigned: reeze (profile)
Status: Closed Package: PHAR related
PHP Version: 5.4.7 OS: CentOS 6.3
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: bbialek at smartertravelmedia dot com
New email:
PHP Version: OS:

 

 [2012-09-18 16:22 UTC] bbialek at smartertravelmedia dot com
Description:
------------
When running make after configure, the php build fails in ext/phar/phar.phar 
with: 

Fatal error: Uncaught exception 'PharException' with message 'unable to create 
temporary file' in /usr/src/php-5.4.7/ext/phar/phar.php:1011


Test script:
---------------
./configure --enable-bcmath --enable-calendar --enable-cli --enable-ftp --enable-mbstring --enable-pcntl --enable-soap --with-apxs2 --with-curl --with-gettext --with-libdir=lib64 --with-mcrypt --with-mysqli --with-mysql=/usr/ --with-openssl --without-pdo-sqlite --with-pdo-mysql=/usr --with-pdo-sqlite --with-tidy --with-zlib-dir=/usr/lib64 --enable-zip && make

Expected result:
----------------
I expect make to exit successfully and not with Error 255.

Actual result:
--------------
Fatal error: Uncaught exception 'PharException' with message 'unable to create 
temporary file' in /usr/src/php-5.4.7/ext/phar/phar.php:1011
Stack trace:
#0 /usr/src/php-5.4.7/ext/phar/phar.php(1011): Phar-
>setStub('#!/usr/local/bi...')
#1 /usr/src/php-5.4.7/ext/phar/phar.php(1071): PharCommand-
>phar_set_stub_begin(Object(Phar), '/root/rpmbuild/...', '/usr/src/php-5....', 
'/usr/local/bin/...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /usr/src/php-5.4.7/ext/phar/phar.php(225): call_user_func(Array, Array)
#4 /usr/src/php-5.4.7/ext/phar/phar.php(2089): CLICommand->__construct(19, Array)
#5 {main}
  thrown in /usr/src/php-5.4.7/ext/phar/phar.php on line 1011
make: *** [ext/phar/phar.phar] Error 255

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-19 16:21 UTC] reeze@php.net
-Status: Open +Status: Feedback
 [2012-09-19 16:21 UTC] reeze@php.net
Does your temp dir have enough space?
 [2012-09-19 18:20 UTC] bbialek at smartertravelmedia dot com
I did, but this was under Parallels with an expandable disk.  I've created a fixed disk and mounted it on /tmp and the compile now completes successfully.  Please close the bug.
 [2012-09-20 03:00 UTC] reeze@php.net
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: reeze
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 21 09:01:26 2025 UTC