Re: PHP 4.0 Bug #5783 Updated: session_register always returns true
| From: | Stanislav Malyshev | Date: | Wed, 23 Aug 2000 13:51:02 +0000 |
| Subject: | Re: PHP 4.0 Bug #5783 Updated: session_register always returns true | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-30377@lists.php.net to get a copy of this message | ||
AC>> Do you see this as a problem? This makes it impossible to detect at
AC>> runtime whether or not your saved variables will be available later.
They are. That's like fiving you means to check if your head is still on
you. If it isn't, you've in deep trouble anyway, so no need for additional
check. Same with sessions - if it cannot save, that means session module
is dead, and no amount of checks is going to help you anyway.
AC>> It seems wrong to find out later that a variable you know you tried to
AC>> save earlier is not available. Seems to make more sense to catch the
AC>> problem as early as possible.
Like when? When sessions fails to save, it gives you a warning. If it
didn't fail, nobody can give you any kind of indication would it fail or
not - PHP core has no extrasensory abilities.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106