1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/simplexml/tests/bug36611.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

29 lines
445 B
PHP

--TEST--
Bug #36611 (assignment to SimpleXML object attribute changes argument type to string)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
$xml_str = <<<EOD
<?xml version="1.0" encoding="ISO-8859-1" ?>
<c_fpobel >
<pos >
<pos/>
</pos>
</c_fpobel>
EOD;
$xml = simplexml_load_string($xml_str);
$val = 1;
var_dump($val);
$xml->pos["act_idx"] = $val;
var_dump($val);
?>
--EXPECT--
int(1)
int(1)