Edit report at https://bugs.php.net/bug.php?id=60179&edit=1

 ID:                 60179
 User updated by:    dbetz at df dot eu
 Reported by:        dbetz at df dot eu
 Summary:            wrong output with php_flag boolean
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            FPM related
 Operating System:   Gentoo Linux
 PHP Version:        5.3.8
 Assigned To:        fat
 Block user comment: N
 Private report:     N

 New Comment:

Hello Jerome,

works like a charm :-)

Thank you much.

Greetings,
Daniel


Previous Comments:
------------------------------------------------------------------------
[2011-11-03 15:08:02] f...@php.net

I finally understood your problem ;)

Can you please test the version 2 of the patch attached and reopen the bug when 
it's done ?

Thx
++ Jerome

------------------------------------------------------------------------
[2011-11-03 15:07:02] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-bug60179-v2.patch
Revision:   1320332822
URL:        
https://bugs.php.net/patch-display.php?bug=60179&patch=fpm-bug60179-v2.patch&revision=1320332822

------------------------------------------------------------------------
[2011-10-31 14:44:52] dbetz at df dot eu

In the php manual http://php.net/ini_get is an notice:
Hinweis: When querying boolean values

A boolean ini value of off will be returned as an empty string or "0" while a 
boolean ini value of on will be returned as "1". The function can also return 
the literal string of INI value. 

--

It looks like, that the value is not boolen Off but string "Off"

------------------------------------------------------------------------
[2011-10-31 14:34:49] dbetz at df dot eu

Hello,

yes, the option is set correct, but the return value of ini_get() is different 
than whith php-cgi.

Most apps like typo3, joomla, wordpress, eg. are checking in the installer, if 
php.ini settings are correct.
These setting are checked thru ini_get.

When ini_get(session.auto_start) is not 0 but "Off", then the check fails.

Here is the sample code from typo3 installer:

                if (ini_get('session.auto_start')) {
                        $sessionCreationError = 'Error: session.auto-start
is enabled.<br />';
                        $sessionCreationError .= 'The PHP option
session.auto-start is enabled. Disable this option in php.ini or
.htaccess:<br />';

I hope you understand now my problem.

------------------------------------------------------------------------
[2011-10-31 14:22:10] f...@php.net

hum ... not sure to understand your problem afterall :)

without the patch:
If I set php_flag[session.auto_start]=On
ini_get("session.auto_start") returns "On"
and session are created for each page (auto start is on as asked)

If I set php_flag[session.auto_start]=Off
ini_get("session.auto_start") returns "Off"
and session are NOT created for each page (auto start is off as asked)

For me this works as expected.
Do you have the same behavior ?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=60179


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60179&edit=1

Reply via email to