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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 - 10 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 04:01:31 2024 UTC