Bug #70247 [Opn->Nab]: case eq

From: Date: Wed, 12 Aug 2015 15:20:33 +0000
Subject: Bug #70247 [Opn->Nab]: case eq
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195157@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70247&edit=1 ID: 70247 Updated by: cmb@php.net Reported by: rh at hrdns dot de Summary: case eq -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: Linux PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php See <http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting>. Previous Comments: ------------------------------------------------------------------------ [2015-08-12 14:14:40] rh at hrdns dot de Description: ------------ Case/EQ Bug? 'c' => 'c' (int)'c' => '0' (int)(bool)'c' => '1' o0 ? Test script: --------------- var_dump( 'a' == ((int)'c') ); var_dump( '1' == ((int)'3') ); Expected result: ---------------- bool(false) bool(false) Actual result: -------------- bool(true) bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70247&edit=1

« previous php.bugs (#195157) next »