|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-03 17:12 UTC] cellog@php.net
[2009-02-03 18:18 UTC] cellog@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
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