Red Hat Bugzilla – Bug 124985
enable safe mode overriding safe_mode option
Last modified: 2007-11-30 17:10:43 EST
Description of problem:
the default configuration has --enable-safe_mode and the default
php.ini has safe_mode = 0 which is hypocritical. The problem is that
the "--enable-safe-mode" overrides the safe_mode option in the php.ini
and there is no way to turn off safe mode.
I also did not test this with the default php that comes with the
install, I am using the new php update via yum.
I can't reproduce this; the configure default is supposed to be
overridden by the /etc/php.ini setting. Can you attach your
/etc/php.ini and a script which fails?
Created attachment 100762 [details]
PHP INI file
I didn't make any changes to the php.ini, I am using the default.
the error was on:
I managed to fix it by changing the owner of everything in the
/usr/share/pear directory to be owned by my group instead of by the
Since the php.ini has safe_mode = Off, why would I see any safe mode
errors at all?
Oh ... I did change the php.ini to show all errors.
Still can't reproduce with php-4.3.6-5. php.ini should be setting
safe_mode to Off by default, and is for me. What does:
# echo '<? phpinfo() ?>' | php -q | grep safe_mode
give for you, also:
# rpm -q php
I can't duplicate it anymore. It seems it must have been a
permissions issue. The thing that I couldn't figure out is why I was
getting Safe Mode warnings when safe_mode option was off. Very strange.