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
Status: Closed Package: Testing related
PHP Version: 5.4.4RC2 OS: Windows
Private report: No CVE-ID:
 [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)

Add a Patch

Pull Requests

Add a Pull Request

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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 21:01:55 2014 UTC