Re: 5.4 regression: non-existent sub-sub keys now have values
| From: | Alexey Shein | Date: | Thu, 24 Nov 2011 10:31:52 +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 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56563@lists.php.net to get a copy of this message | ||
2011/11/24 <devis@lucato.it>:
> 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 ?
>
Hi, Davis, first of all you can use this service:
http://codepad.viper-7.com/ to test your code against 5.2,
5.3, 5.4
and latest trunk.
> ###########
> 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
>
About your question if I understand it correctly: if
$widget_options['dashboard_incoming_links'] is not set, then
$widget_options['dashboard_incoming_links']['home'] can't be set in
any conditions.
>
> Thank you
> Devis
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Regards,
Shein Alexey