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

From: Date: Thu, 03 Aug 2006 07:39:31 +0000
Subject: #38297 [Bgs->Csd]: empty() crashed during parsing if not variable given
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100257@lists.php.net to get a copy of this message
ID: 38297 User updated by: pityu-kg at rainstorm dot org Reported By: pityu-kg at rainstorm dot org -Status: Bogus +Status: Closed Bug Type: Reproducible crash Operating System: Win32 PHP Version: 4CVS-2006-08-02 (snap) New Comment: Sorry, you're right. Previous Comments: ------------------------------------------------------------------------ [2006-08-02 15:32:41] tony2001@php.net Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_VARIABLE or '$' ------------------------------------------------------------------------ [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 (#100257) next »