ID: 17330 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.2.0 New Comment:
Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. Empty only works on *variables*. Previous Comments: ------------------------------------------------------------------------ [2002-05-21 04:11:26] [EMAIL PROTECTED] The following error occurred: <b>Parse error</b>: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in <b>/www/htdocs/index.wc</b> on line <b>21</b><br /> When I ran the following code: if (!empty(HttpRequest::fetchPost(ENT))) { // code. } The internals of HttpRequest::fetchPost() returns the value of $HTTP_POST_VARS[ENT]. ENT is properly defined (as "ent"), and I was able to fix it by doing: $postData = HttpRequest::fetchPost(ENT); if (!empty($postData)) { // code. { My original code should execute without fail in my opinion, but if there is an acceptable reason for this bug, then so be it. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17330&edit=1
