#49855 [Ver->Csd]: import_request_variables always return false in any codition.
| From: | iliaa@php.net | Date: | Thu, 15 Oct 2009 12:27:05 +0000 |
| Subject: | #49855 [Ver->Csd]: import_request_variables always return false in any codition. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143589@lists.php.net to get a copy of this message | ||
ID: 49855
Updated by: iliaa@php.net
Reported By: easyeagel at gmx dot com
-Status: Verified
+Status: Closed
Bug Type: HTTP related
Operating System: Linux
PHP Version: 5.2.11
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-10-15 12:26:56] svn@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=289666
Log: Fixed bug #49855 (import_request_variables() always returns NULL).
------------------------------------------------------------------------
[2009-10-14 08:57:01] sjoerd@php.net
Patch: http://pastebin.com/f236dcf35
------------------------------------------------------------------------
[2009-10-13 10:55:20] sjoerd@php.net
Actually, it seems to return null, not false.
------------------------------------------------------------------------
[2009-10-13 02:16:16] easyeagel at gmx dot com
Description:
------------
the import_request_variables always return false in any condition.
Reproduce code:
---------------
---
From manual page: function.import-request-variables#Return Values
---
if(import_request_variables('p', 'post_'))
{
echo "unimport the request<br/>";
phpinfo();
}
if(isset($post_username))
{
echo "<strong>", $post_username, "</strong><br/>";
}
if(isset($post_email))
{
echo "<strong>", $post_email, "</strong><br/>";
}
if(isset($post_message))
{
echo "<strong>", $post_message, "</strong>";
}
Expected result:
----------------
I think the import_request_varibles return true
Actual result:
--------------
it return false, and return false anytime, if I run php5 in command
line or in apache.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49855&edit=1