mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
227295a4f1
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
27 lines
376 B
PHP
Executable File
27 lines
376 B
PHP
Executable File
--TEST--
|
|
SimpleXML: Split text content
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('simplexml')) print 'skip';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$xml =<<<EOF
|
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<foo>bar<baz/>bar</foo>
|
|
EOF;
|
|
|
|
$sxe = simplexml_load_string($xml);
|
|
|
|
var_dump((string)$sxe);
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(6) "barbar"
|
|
===DONE===
|
|
--UEXPECT--
|
|
unicode(6) "barbar"
|
|
===DONE===
|