Re: 5.4 regression: non-existent sub-sub keys now have values

From: Date: Thu, 24 Nov 2011 10:05:32 +0000
Subject: Re: 5.4 regression: non-existent sub-sub keys now have values
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-56560@lists.php.net to get a copy of this message
On 24 November 2011 01:38, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > Hi! > >> But neither is introducing a potential bomb of the kind that the 'date' >> saga >> created. The problem this change IS causing is likely to hit many live >> sites > > The claim that many live sites actually regularly use string multiple string > offsets to distinguish strings from arrays sounds implausible to me. > Hi, I hadn't the opportunity to install php 5.4 to test this, so I was wondering if someone could test how would this code behave ? ########### if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) ########### Is that correct saying that if the first condition is false the second will always be true ? Note: that's a piece of Wordpress Thank you Devis

« previous php.internals (#56560) next »