|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-30 16:04 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2017-03-30 16:04 UTC] requinix@php.net
[2017-03-30 16:07 UTC] spam2 at rhsoft dot net
[2017-03-30 16:32 UTC] damianboni at gmail dot com
-Status: Feedback
+Status: Open
[2017-03-30 16:32 UTC] damianboni at gmail dot com
[2017-03-30 16:39 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-PHP Version: 7.0.17
+PHP Version: 7.0.8
[2017-03-30 16:39 UTC] requinix@php.net
[2017-04-10 16:06 UTC] damianboni at gmail dot com
-PHP Version: 7.0.8
+PHP Version: 7.0.15
[2017-04-10 16:06 UTC] damianboni at gmail dot com
[2017-04-10 16:11 UTC] requinix@php.net
-Status: Not a bug
+Status: Feedback
[2017-04-10 16:11 UTC] requinix@php.net
[2017-04-23 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 07:00:01 2025 UTC |
Description: ------------ Tested on PHP7.0.8 ubuntu 16.04.3 @ 2017-03-30 isset() is incorrectly retuning false (should return true) when checking array key that has its value set to boolean. I tested the below script on different version of PHP and always get true with an exception to 7.0.8 Test script: --------------- Code: $params['entry']['attributes'] = array( 'enabled' => true ); var_dump(isset($params['entry']['attributes']['enabled'])); $whatIsGoingOn = $params['entry']['attributes']['enabled']; var_dump(isset($whatIsGoingOn)); var_dump(array_key_exists('enabled', $params['entry']['attributes'])); Output: bool(false) bool(true) bool(true) Expected result: ---------------- bool(true) bool(true) bool(true) Actual result: -------------- bool(false) bool(true) bool(true)