mirror of
https://github.com/php/php-src.git
synced 2024-09-25 20:07:26 +00:00
1dd351d649
# Issue not completley solved though
25 lines
566 B
PHP
Executable File
25 lines
566 B
PHP
Executable File
--TEST--
|
|
Bug #35785 (SimpleXML memory read error)
|
|
--FILE--
|
|
<?php
|
|
|
|
$xml = simplexml_load_string("<root></root>");
|
|
$count = count($xml->posts);
|
|
var_dump($count);
|
|
$xml->bla->posts[++$count]->name = "FooBar";
|
|
echo $xml->asXML();
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); __halt_compiler(); ?>
|
|
--EXPECTF--
|
|
int(0)
|
|
|
|
Notice: Undefined index: name in %sbug35785.php on line %d
|
|
|
|
Strict Standards: Creating default object from empty value in %sbug35785.php on line %d
|
|
|
|
Warning: Attempt to assign property of non-object in %sbug35785.php on line %d
|
|
<?xml version="1.0"?>
|
|
<root/>
|
|
===DONE===
|