관리-도구
편집 파일: 196.solrparams_serialize_php81.phpt
--TEST-- SolrParams::serialize() - serialize params --SKIPIF-- <?php if (PHP_VERSION_ID < 80100) die("skip PHP 8.1+ only"); ?> --FILE-- <?php $params = new SolrModifiableParams(); $params ->setParam('q', 'lucene') ->setParam('start', 0) ->setParam('rows', 10) ->addParam('fq', 'popularity:[10 TO *]') ->addParam('fq', 'section:0') ; echo serialize($params); ?> --EXPECTF-- O:20:"SolrModifiableParams":1:{s:3:"xml";s:727:"<?xml version="1.0" encoding="UTF-8"?> <solr_params> <params> <param name="q" type="1" allow_multiple="0" count="1" delimiter="38" arg_separator="0"> <param_value>lucene</param_value> </param> <param name="start" type="1" allow_multiple="0" count="1" delimiter="38" arg_separator="0"> <param_value>0</param_value> </param> <param name="rows" type="1" allow_multiple="0" count="1" delimiter="38" arg_separator="0"> <param_value>10</param_value> </param> <param name="fq" type="1" allow_multiple="1" count="2" delimiter="38" arg_separator="0"> <param_value>popularity:[10 TO *]</param_value> <param_value>section:0</param_value> </param> </params> </solr_params> ";}