diff options
author | Antony Dovgal <tony2001@php.net> | 2006-03-05 16:12:48 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-03-05 16:12:48 +0000 |
commit | e43a77d84c28bf678c8e548b980b4b23dd21bdd1 (patch) | |
tree | edab6302ceb95496fb6dae5d214987488cee0790 /ext/simplexml/tests | |
parent | 35ce5db25e2701b62a3e26235b117471cbbbab5b (diff) | |
download | php-git-e43a77d84c28bf678c8e548b980b4b23dd21bdd1.tar.gz |
add test
Diffstat (limited to 'ext/simplexml/tests')
-rw-r--r-- | ext/simplexml/tests/bug36611.phpt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/simplexml/tests/bug36611.phpt b/ext/simplexml/tests/bug36611.phpt new file mode 100644 index 0000000000..fdfed0d019 --- /dev/null +++ b/ext/simplexml/tests/bug36611.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #36611 (assignment to SimpleXML object attribute changes argument type to string) +--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); +$obj->pos["act_idx"] = $val; +var_dump($val) ; + +echo "Done\n"; +?> +--EXPECT-- +int(1) +int(1) +Done |