From:             lars at larswolter dot de
Operating system: Linux
PHP version:      5.3.0beta1
PHP Bug Type:     Compile Failure
Bug description:  generating phar.phar failes because of safe_mode

Description:
------------
Compilation failes while generating phar.phar. This happens if php is
configured with safe_mode to on.

Workaround?
Add -d 'safe_mode=0' to PHP_PHARCMD_SETTINGS

Reproduce code:
---------------
'./configure' '--without-mm' \
    '--with-mysql' '--prefix=/usr/lib/php5' \
    '--with-mcrypt' \
    '--enable-safe-mode' \
    '--with-openssl' '--with-zlib' '--enable-calendar' \
    '--enable-exif' '--enable-ftp' \
    '--with-gd' '--with-imap' '--with-kerberos' \
    '--with-imap-ssl' \
    '--enable-gd-native-ttf' \
    '--enable-force-cgi-redirect' \
    '--with-freetype-dir=/usr/include/freetype2' \
    '--with-jpeg-dir=/usr/lib' \
    '--with-gettext' '--with-iconv' '--enable-mbstring=all' \
    '--enable-mbregex' '--with-xsl' '--with-pdo-mysql'

Expected result:
----------------
Build complete.

Actual result:
--------------
Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
/home/lars/php-5.3.0beta1/ext/phar/phar.php on line 706
Pear package PHP_Archive or Archive.php class file not found.

Warning: Phar::__construct(): SAFE MODE Restriction in effect.  The script
whose uid is 0 is not allowed to access /home/lars/php-5.3.0beta1/ext/phar
owned by uid 1001 in /home/lars/php-5.3.0beta1/ext/phar/phar.php on line
1055

Fatal error: Uncaught exception 'UnexpectedValueException' with message
'Phar creation or opening failed' in
/home/lars/php-5.3.0beta1/ext/phar/phar.php:1055
Stack trace:
#0 /home/lars/php-5.3.0beta1/ext/phar/phar.php(1055):
Phar->__construct('/home/lars/php-5.3.0...', 0, 'pharcommand')
#1 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#2 /home/lars/php-5.3.0beta1/ext/phar/phar.php(225): call_user_func(Array,
Array)
#3 /home/lars/php-5.3.0beta1/ext/phar/phar.php(2078):
CLICommand->__construct(19, Array)
#4 {main}
  thrown in /home/lars/php-5.3.0beta1/ext/phar/phar.php on line 1055
make: *** [ext/phar/phar.phar] Fehler 255

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

Reply via email to