📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-07-01 11:05:17
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php82-pecl-solr_2.9.3-1.el8
/
tests
📍 /opt/alt/tests/alt-php82-pecl-solr_2.9.3-1.el8/tests
🔄 Refresh
✏️
Editing: 151.solrcollapsefunction_illegal_operations.phpt
Read Only
--TEST-- SolrCollapseFunction - Illegal Operations --SKIPIF-- <?php if (version_compare(PHP_VERSION, "5.4", "lt")) die("skip PHP 5.4+ only"); ?> --FILE-- <?php $func = new SolrCollapseFunction('field'); try { $tmp = clone $func; } catch (SolrIllegalOperationException $e) { echo PHP_EOL . sprintf('Code %d: %s', $e->getCode(), $e->getMessage()).PHP_EOL; } $func->setMax('max'); try { // known issue, object corruption $tmp = serialize($func); } catch (SolrIllegalOperationException $e) { echo PHP_EOL . sprintf('Code %d: %s', $e->getCode(), $e->getMessage()).PHP_EOL; } ?> --EXPECTF-- Code 4001: Cloning of SolrCollapseFunction objects is currently not supported Code 1001: Serialization of SolrCollapseFunction objects is currently not supported
💾 Save Changes
❌ Cancel