Edit report at https://bugs.php.net/bug.php?id=60362&edit=1

 ID:                 60362
 Patch added by:     larue...@php.net
 Reported by:        danielc at analysisandsolutions dot com
 Summary:            non-existent sub-sub keys should not have values
 Status:             Open
 Type:               Bug
 Package:            Arrays related
 Operating System:   linux
 PHP Version:        5.4SVN-2011-11-23 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: string_offset_trigger_notice.patch
Revision:   1323062240
URL:        
https://bugs.php.net/patch-display.php?bug=60362&patch=string_offset_trigger_notice.patch&revision=1323062240


Previous Comments:
------------------------------------------------------------------------
[2011-12-04 17:27:28] larue...@php.net

submit a new patch, which only trigger notice when string offset cast occurred.

------------------------------------------------------------------------
[2011-12-04 17:26:41] larue...@php.net

The following patch has been added/updated:

Patch Name: string_offset_trigger_notice.patch
Revision:   1323019601
URL:        
https://bugs.php.net/patch-display.php?bug=60362&patch=string_offset_trigger_notice.patch&revision=1323019601

------------------------------------------------------------------------
[2011-12-04 16:43:41] larue...@php.net

update patch, only change the code style, and fix one test faild, thanks

------------------------------------------------------------------------
[2011-12-04 16:43:01] larue...@php.net

The following patch has been added/updated:

Patch Name: fix_disabling_bad_string_offsets
Revision:   1323016981
URL:        
https://bugs.php.net/patch-display.php?bug=60362&patch=fix_disabling_bad_string_offsets&revision=1323016981

------------------------------------------------------------------------
[2011-12-04 12:52:52] alan at akbkhome dot com

This is the test output after the changes:
- most of this makes sense - string offsets of strings are now invalid, and the 
dereferencing of strings with numerical indexes is 'fixed' and a behaviour 
change.

BEHAVIOR CHANGED: sub-key 'non_existent' is not set.
expected: sub-key 1 is set: string(1) "o"
-------------------
good: sub-sub-key 'sub_sub' is not set.
BEHAVIOR CHANGED: sub-sub-key 0 is set: string(1) "o"
-------------------
BEHAVIOR CHANGED: sub-key 'non_existent' is empty.
expected: sub-key 1 is NOT empty: string(1) "o"
-------------------
good: sub-sub-key 'sub_sub' is empty.
BEHAVIOR CHANGED: sub-sub-key 0 is not empty: string(1) "o"

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=60362


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60362&edit=1

Reply via email to