|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-01 17:09 UTC] degeberg@php.net
-Status: Open
+Status: Bogus
[2010-07-01 17:09 UTC] degeberg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Feb 15 03:00:01 2026 UTC |
Description: ------------ if the given value is a numeric 0 (AND YES APPLIES ONLY FOR THE 0 negative or positive int values are working as expected) the first string expression (case) is matched. Test script: --------------- <pre><?php $data = 0; echo $data."\n\n"; switch ($data) { case 1: $data = 'UNA'; break; case 'N': $data = 'NOW()'; break; case 'NOWB()': $data = 'NOWB()'; break; default: $data = 'DATANEW'; } echo $data; ?></pre> Expected result: ---------------- DATANEW Actual result: -------------- NOW()