php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62271 test bug - ext/wddx/tests/bug48562.phpt
Submitted: 2012-06-09 01:24 UTC Modified: 2012-06-11 15:33 UTC
From: mattficken@php.net Assigned: ab (profile)
Status: Closed Package: Testing related
PHP Version: 5.4.4RC2 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mattficken@php.net
New email:
PHP Version: OS:

 

 [2012-06-09 01:24 UTC] mattficken@php.net
Description:
------------
$a['x'] = &$a;

var_dump(wddx_serialize_vars($a));

$a['x'] = 'foo';

The recursion detection seems to be causing $a to be not an array here, maybe its 
internally a pointer. 

The patch fixes this problem on 5_4 rd24d5b6. The test passes on 5_3.

Actual result:
--------------
003+ 
004+ Warning: Illegal string offset 'x' in C:\php-sdk\php-test-pack-5.4-nts-
windows-vc9-x86-rd24d5b6\ext\wddx\tests\bug48562.php on line 11

Patches

bug48562.patch.txt (last revision 2012-06-09 01:24 UTC by mattficken)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-11 15:05 UTC] ab@php.net
Automatic comment on behalf of mattficken
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a18cede1c5094d5255daeb99cd6debe09938399d
Log: Fix bug #62271 test bug - ext/wddx/tests/bug48562.phpt
 [2012-06-11 15:33 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2012-06-11 15:33 UTC] ab@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-10-07 23:24 UTC] stas@php.net
Automatic comment on behalf of mattficken
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=a18cede1c5094d5255daeb99cd6debe09938399d
Log: Fix bug #62271 test bug - ext/wddx/tests/bug48562.phpt
 [2014-10-07 23:35 UTC] stas@php.net
Automatic comment on behalf of mattficken
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=a18cede1c5094d5255daeb99cd6debe09938399d
Log: Fix bug #62271 test bug - ext/wddx/tests/bug48562.phpt
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC