#35785 [Opn->Ver]: SimpleXML memory read error

From: Date: Fri, 23 Dec 2005 11:29:50 +0000
Subject: #35785 [Opn->Ver]: SimpleXML memory read error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90927@lists.php.net to get a copy of this message
 ID:               35785
 Updated by:       tony2001@php.net
 Reported By:      TheFFF at gmail dot com
-Status:           Open
+Status:           Verified
 Bug Type:         SimpleXML related
 Operating System: Windows Xp Pro
 PHP Version:      5.1.1


Previous Comments:
------------------------------------------------------------------------

[2005-12-23 12:14:24] TheFFF at gmail dot com

Description:
------------
trying to set some values

Reproduce code:
---------------
<?php
  $options["database"] = "xmldatabase";
  $x = simplexml_load_string("<root></root>");
    $count = count($x -> posts) + 1;
    $x -> bla -> posts[$count] -> name = $_POST["name"];
    echo  $x -> asXML();
?>

also getting the error with simplexml_load_file();

Expected result:
----------------
bla dosen't exist so some kinda error

Actual result:
--------------
The instuction at "0x006d693c" referenced memory "0x000000c". The
memory could not be "read"



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


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


Thread (14 messages)

« previous php.bugs (#90927) next »