|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-08 11:58 UTC] derick@php.net
[2004-10-08 11:58 UTC] aidan@php.net
[2004-10-08 12:29 UTC] daniel at spector dot ie
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ PHP4.3.4 to PHP5.0.2 empty('') string evaluates to string(0) on 4.3.4(x?) and string(1) on php5.0.2. Can be reproduced with code below. Thanks alot in advance. Reproduce code: --------------- //an empty string $suffix=''; var_dump($suffix); $msg = (empty($suffix)) ? 'php4' : 'php5'; echo $msg; /* * on php4 var_dump returns string(0) msg returns php4 * on php5 var_dump returns string(1) msg returns php5 */