#49855 [Opn->Ver]: import_request_variables always return false in any codition.

From: Date: Tue, 13 Oct 2009 10:55:21 +0000
Subject: #49855 [Opn->Ver]: import_request_variables always return false in any codition.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143523@lists.php.net to get a copy of this message
ID: 49855 Updated by: sjoerd@php.net Reported By: easyeagel at gmx dot com -Status: Open +Status: Verified Bug Type: HTTP related Operating System: Linux PHP Version: 5.2.11 New Comment: Actually, it seems to return null, not false. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#143523) next »