|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49855 import_request_variables always return false in any codition.
Submitted: 2009-10-13 02:16 UTC Modified: 2009-10-15 12:27 UTC
From: easyeagel at gmx dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 5.2.11 OS: Linux
Private report: No CVE-ID:
 [2009-10-13 02:16 UTC] easyeagel at gmx dot com
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/>";
		echo "<strong>", $post_username, "</strong><br/>";
		echo "<strong>", $post_email, "</strong><br/>";
		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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-13 10:55 UTC]
Actually, it seems to return null, not false.
 [2009-10-14 08:57 UTC]
 [2009-10-15 12:26 UTC]
Automatic comment from SVN on behalf of iliaa
Log: Fixed bug #49855 (import_request_variables() always returns NULL).
 [2009-10-15 12:27 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2009-10-15 14:10 UTC]
Automatic comment from SVN on behalf of pajoye
Log: - Merge: - #49855 ^# ^author ^date ^msg ^merge^
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 01:01:34 2015 UTC