bug26384.phpt
来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 34 行
PHPT
34 行
--TEST--Bug #26384 (domxslt->process causes segfault with xsl:key)--SKIPIF--<?php require_once('skipif.inc'); ?>--FILE--<?php$dom = new domDocument;$dom->load(dirname(__FILE__)."/area_name.xml");if(!$dom) { echo "Error while parsing the document\n"; exit;}$xsl = new domDocument;$xsl->load(dirname(__FILE__)."/area_list.xsl");if(!$xsl) { echo "Error while parsing the document\n"; exit;}$proc = new xsltprocessor;if(!$proc) { echo "Error while making xsltprocessor object\n"; exit;}$proc->importStylesheet($xsl);print $proc->transformToXml($dom);//this segfaulted beforeprint $dom->documentElement->firstChild->nextSibling->nodeName;--EXPECT--HEREROW
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?