From c685c8d7c85959f30de4b4b827d905e208f9b5b9 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 10 Dec 2008 16:36:01 +0000 Subject: [PATCH] * Document XSLTProcessor::setProfiling() method * Document stream_supports_lock() * Document str_getcsv() * gmp_testbit() is available as of 5.3 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270943 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/gmp/versions.xml | 3 +- .../stream/functions/stream-supports-lock.xml | 74 ++++++++++++ reference/stream/versions.xml | 3 +- reference/strings/functions/str-getcsv.xml | 55 ++++++++- reference/xsl/versions.xml | 3 +- reference/xsl/xsltprocessor/setprofiling.xml | 110 ++++++++++++++++++ 6 files changed, 243 insertions(+), 5 deletions(-) create mode 100644 reference/stream/functions/stream-supports-lock.xml create mode 100644 reference/xsl/xsltprocessor/setprofiling.xml diff --git a/reference/gmp/versions.xml b/reference/gmp/versions.xml index e9a8d53a27..d60b12b560 100644 --- a/reference/gmp/versions.xml +++ b/reference/gmp/versions.xml @@ -1,5 +1,5 @@ - + @@ -43,6 +43,7 @@ + diff --git a/reference/stream/functions/stream-supports-lock.xml b/reference/stream/functions/stream-supports-lock.xml new file mode 100644 index 0000000000..19f7d9cca5 --- /dev/null +++ b/reference/stream/functions/stream-supports-lock.xml @@ -0,0 +1,74 @@ + + + + + stream_supports_lock + Tells wether the stream supports locking. + + + + &reftitle.description; + + resourcestream_supports_locking + resourcestream + + + Tells wether the stream supports locking through + flock. + + + + + &reftitle.parameters; + + + + stream + + + The stream to check. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + + flock + + + + + + + diff --git a/reference/stream/versions.xml b/reference/stream/versions.xml index 70f06e540c..40ce712f4b 100644 --- a/reference/stream/versions.xml +++ b/reference/stream/versions.xml @@ -1,5 +1,5 @@ - + @@ -39,6 +39,7 @@ + diff --git a/reference/strings/functions/str-getcsv.xml b/reference/strings/functions/str-getcsv.xml index fd9e972c83..8257bea186 100644 --- a/reference/strings/functions/str-getcsv.xml +++ b/reference/strings/functions/str-getcsv.xml @@ -1,5 +1,5 @@ - + str_getcsv @@ -18,7 +18,58 @@ stringescape - &warn.undocumented.func; + Similar to fgetcsv this functions parses a + string as its input unlike fgetcsv which + takes a file as its input. + + + + + &reftitle.parameters; + + + + input + + + The string to parse. + + + + + delimiter + + + Set the field delimiter (one character only). Defaults as a comma. + + + + + enclosure + + + Set the field enclosure character (one character only). Defaults as a + double quotation mark. + + + + + escape + + + Set the escape character (one character only). Defaults as a backslash + (\) + + + + + + + + + &reftitle.returnvalues; + + Returns an indexed array containing the fields read. diff --git a/reference/xsl/versions.xml b/reference/xsl/versions.xml index 12bc6ff3b3..bacaec8986 100644 --- a/reference/xsl/versions.xml +++ b/reference/xsl/versions.xml @@ -1,5 +1,5 @@ - + @@ -10,6 +10,7 @@ + diff --git a/reference/xsl/xsltprocessor/setprofiling.xml b/reference/xsl/xsltprocessor/setprofiling.xml new file mode 100644 index 0000000000..7a18f052d8 --- /dev/null +++ b/reference/xsl/xsltprocessor/setprofiling.xml @@ -0,0 +1,110 @@ + + + + + XSLTProcessor::setProfiling + Sets profiling output file + + + &reftitle.description; + + XSLTProcessor + + boolsetProfiling + stringfilename + + + + Sets the file to output profiling information when processing + a stylesheet. + + + + + &reftitle.parameters; + + + + filename + + + Path to the file to dump profiling information. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + + Example profiling output + +load('collection.xml'); + +$xsl = new DOMDocument; +$xsl->load('collection.xsl'); + +// Configure the transformer +$proc = new XSLTProcessor; +$proc->setProfiling('profiling.txt'); +$proc->importStyleSheet($xsl); // attach the xsl rules + +echo trim($proc->transformToDoc($xml)->firstChild->wholeText); +?> +]]> + + + The above code will produce the following information + in the profiling file: + + + + + + + + + + +