1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/simplexml/tests/bug36611.phpt
Nikita Popov 29d87caebf Fix typo in XML test
Uncovered by the change in e63febb1c7.
2019-02-14 12:59:08 +01:00

31 lines
467 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);
?>
===DONE===
--EXPECT--
int(1)
int(1)
===DONE===