php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37076 SimpleXML ignores .=
Submitted: 2006-04-14 00:30 UTC Modified: 2008-01-22 20:42 UTC
Votes:4
Avg. Score:3.8 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:0 (0.0%)
From: bjori@php.net Assigned: helly (profile)
Status: Closed Package: SimpleXML related
PHP Version: 5.2.* OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bjori@php.net
New email:
PHP Version: OS:

 

 [2006-04-14 00:30 UTC] bjori@php.net
Description:
------------
Simplexml doesn't respect .=

Reproduce code:
---------------
<?php
$xml = simplexml_load_string("<root><foo /></root>");
$xml->foo = "foo";
$xml->foo .= "bar";
print $xml->asXML();

Expected result:
----------------
<?xml version="1.0"?>
<root><foo>foobar</foo></root>

Actual result:
--------------
<?xml version="1.0"?>
<root><foo>foo</foo></root>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-14 10:58 UTC] helly@php.net
This cannot work in 5.1. Please test HEAD and assign to me if it is not working in HEAD or close if it does.
 [2006-04-14 12:03 UTC] bjori@php.net
Reproduced in HEAD
It does however work in 5.0..
 [2006-05-27 01:12 UTC] helly@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

Can you please write a test case?
 [2006-05-27 10:40 UTC] bjori@php.net
http://php.is/bugs/37076/bug37076.phpt
(fails still)
 [2007-08-15 16:23 UTC] bjori@php.net
(Updated version).

Marcus: Still doesn't work.. :)
 [2008-01-22 20:42 UTC] helly@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC