xref: /PHP-5.6/ext/simplexml/tests/bug36611.phpt (revision cfc417af)
1--TEST--
2Bug #36611 (assignment to SimpleXML object attribute changes argument type to string)
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) print "skip"; ?>
5--FILE--
6<?php
7
8$xml_str = <<<EOD
9<?xml version="1.0" encoding="ISO-8859-1" ?>
10<c_fpobel >
11  <pos >
12    <pos/>
13  </pos>
14</c_fpobel>
15EOD;
16
17$xml = simplexml_load_string ($xml_str) ;
18
19$val = 1;
20
21var_dump($val);
22$zml->pos["act_idx"] = $val;
23var_dump($val) ;
24
25?>
26===DONE===
27--EXPECT--
28int(1)
29int(1)
30===DONE===
31