From:             bbialek at smartertravelmedia dot com
Operating system: CentOS 6.3
PHP version:      5.4.7
Package:          PHAR related
Bug Type:         Bug
Bug description:PharException when compiling

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=63112&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=63112&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=63112&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=63112&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=63112&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=63112&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=63112&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=63112&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=63112&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=63112&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=63112&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=63112&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=63112&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=63112&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=63112&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=63112&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=63112&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=63112&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=63112&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=63112&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=63112&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=63112&r=mysqlcfg

Reply via email to