mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
We fix the most often occuring typos according to a recent codespell report[1] in tests, code comments and documentation. [1] <https://fossies.org/linux/test/php-src-master-f8f48ce.191129.tar.gz/codespell.html>.
17 lines
494 B
PHP
17 lines
494 B
PHP
--TEST--
|
|
Bug #70720 (strip_tags() doesn't handle "xml" correctly)
|
|
--FILE--
|
|
<?php
|
|
var_dump(strip_tags('<?php $dom->test(); ?> this is a test'));
|
|
var_dump(strip_tags('<?php $xml->test(); ?> this is a test'));
|
|
var_dump(strip_tags('<?xml $xml->test(); ?> this is a test'));
|
|
|
|
/* "->" case in HTML */
|
|
var_dump(strip_tags("<span class=sf-dump-> this is a test</span>"));
|
|
?>
|
|
--EXPECT--
|
|
string(15) " this is a test"
|
|
string(15) " this is a test"
|
|
string(15) " this is a test"
|
|
string(15) " this is a test"
|