#37327 [Fbk->Opn]: Can't turn off magic_quotes_gpc
| From: | davojan at mail dot ru | Date: | Fri, 05 May 2006 13:01:56 +0000 |
| Subject: | #37327 [Fbk->Opn]: Can't turn off magic_quotes_gpc | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96659@lists.php.net to get a copy of this message | ||
ID: 37327
User updated by: davojan at mail dot ru
Reported By: davojan at mail dot ru
-Status: Feedback
+Status: Open
Bug Type: *Configuration Issues
Operating System: FreeBSD 6.0
PHP Version: 5.1.4
New Comment:
Of course it's readable.
ls -l php.ini
46 -rw-r--r-- 1 root wheel 45644 Apr 13 05:48 php.ini
My operations:
1. cd /usr/ports/distfiles/php-5.1.4
./configure [my options]
make install
/usr/local/etc/rc.d/apache.sh restart
result: php.ini is not used
2. cd ../php-5.1.2
./configure [the same options]
make install
/usr/local/etc/rc.d/apache.sh restart
result: php.ini is used
I don't change anything in httpd.conf or php.ini, don't reinstall
apache or anything else.
Previous Comments:
------------------------------------------------------------------------
[2006-05-05 12:34:42] tony2001@php.net
>for php 5.1.4: /usr/local/etc
Which means php.ini is not used at all.
Make sure it's readable to Apache.
------------------------------------------------------------------------
[2006-05-05 12:05:07] davojan at mail dot ru
Ups!
"Configuration File (php.ini) Path" from phpinfo()
for php 5.1.4: /usr/local/etc
for php 5.1.2: /usr/local/etc/php.ini
The file is on it's place. I didn't touch it.
Anyway, it is a bug.
------------------------------------------------------------------------
[2006-05-05 11:39:02] tony2001@php.net
And which php.ini file is used according to phpinfo() ?
------------------------------------------------------------------------
[2006-05-05 11:13:48] davojan at mail dot ru
Description:
------------
In my php.ini (/usr/local/etc/php.ini):
magic_quotes_gpc = Off
magic_quotes_runtime = Off
phpinfo() gives:
magic_quotes_gpc On On
magic_quotes_runtime Off Off
There are no additional settings in my .htaccess.
my configure:
'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-config-file-path=/usr/local/etc'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-session' '--with-pcre-regex' '--enable-xml'
'--enable-libxml'
'--with-libxml-dir=/usr/local' '--enable-dom' '--with-xsl'
'--with-zlib'
'--enable-sockets' '--with-gd' '--disable-gd-jis-conv'
'--enable-gd-native-ttf' '--with-iconv=/usr/local'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--enable-reflection' '--with-mysql'
'--with-pdo-mysql' '--with-pear' '--with-openssl'
'--with-apxs=/usr/local/sbin/apxs' '--enable-fastcgi'
'--enable-force-cgi-redirect' '--disable-ipv6' '--prefix=/usr/local'
'i386-portbld-freebsd6.0'
I had to downgrade back to 5.1.2, it works fine with the same
configure.
Whas is happening guys? Are you going to release php-5.1.5 after to
days? :))
May be it is related to bug #36257, but in 5.1.2 it's ok.
O, almost forgot, it's apache 1.3.34 + mod_php.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37327&edit=1