#38297 [Opn->Bgs]: empty() crashed during parsing if not variable given

From: Date: Wed, 02 Aug 2006 15:32:41 +0000
Subject: #38297 [Opn->Bgs]: empty() crashed during parsing if not variable given
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100235@lists.php.net to get a copy of this message
ID: 38297 Updated by: tony2001@php.net Reported By: pityu-kg at rainstorm dot org -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Win32 PHP Version: 4CVS-2006-08-02 (snap) New Comment: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_VARIABLE or '$' Previous Comments: ------------------------------------------------------------------------ [2006-08-02 15:16:00] pityu-kg at rainstorm dot org Description: ------------ <?php empty(' '); ?> crashes without any message, despite E_ALL config. It crashes during parsing, this code doesn't have to be accessible. empty() should get only variables as parameter, not values. Reproduce code: --------------- <?php empty(' '); ?> Expected result: ---------------- Some error or warning telling empty() should get variable, not a value. Actual result: -------------- PHP crash without any message. Apache does not crash. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38297&edit=1

« previous php.bugs (#100235) next »