cvs: peardoc /en/package/php/php-compatinfo api.xml
| From: | Laurent Laville | Date: | Wed, 25 Jun 2008 20:57:19 +0000 |
| Subject: | cvs: peardoc /en/package/php/php-compatinfo api.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-10913@lists.php.net to get a copy of this message | ||
farell Wed Jun 25 20:57:19 2008 UTC
Modified files:
/peardoc/en/package/php/php-compatinfo api.xml
Log:
an important note on API 1.8 about the new parseData() method
http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-compatinfo/api.xml?r1=1.7&r2=1.8&diff_format=u
Index: peardoc/en/package/php/php-compatinfo/api.xml
diff -u peardoc/en/package/php/php-compatinfo/api.xml:1.7
peardoc/en/package/php/php-compatinfo/api.xml:1.8
--- peardoc/en/package/php/php-compatinfo/api.xml:1.7 Tue Apr 22 07:24:30 2008
+++ peardoc/en/package/php/php-compatinfo/api.xml Wed Jun 25 20:57:19 2008
@@ -1,5 +1,5 @@
-<!-- $Id: api.xml,v 1.7 2008/04/22 07:24:30 moosh Exp $ -->
-<!-- $Revision: 1.7 $ -->
+<!-- $Id: api.xml,v 1.8 2008/06/25 20:57:19 farell Exp $ -->
+<!-- $Revision: 1.8 $ -->
<refentry id="package.php.php-compatinfo.api">
<refnamediv>
<refname>API</refname>
@@ -49,7 +49,18 @@
</itemizedlist>
</para>
<para>
- Call one of these five functions,
+ <note>
+ <para>
+ API 1.8.0 introduces a common interface to parse all data sources (array,
+ file, directory, chunk of code) with source auto detection. See
+ <link linkend="package.php.php-compatinfo.php-compatinfo.parsedata">
+ PHP_CompatInfo::parseData()
+ </link>.
+ </para>
+ </note>
+ </para>
+ <para>
+ Call one of these five functions,
with or without options,
and you will retrieve a hash which contains information:
<itemizedlist>
@@ -106,15 +117,15 @@
<emphasis role="bold">cond_code</emphasis>,
A level (and details) of warning about conditional code found
during parsing source code:
- from
- 0=none,
- 1=function_exists,
- 2=extension_loaded,
+ from
+ 0=none,
+ 1=function_exists,
+ 2=extension_loaded,
4=defined
</para>
<para>
- Its binary value,
- so 5 means defined+function_exists,
+ Its binary value,
+ so 5 means defined+function_exists,
and so on ...
</para>
</listitem>
@@ -186,7 +197,7 @@
</term>
<listitem>
<para>
- Excludes from scope all functions that match
+ Excludes from scope all functions that match
(full or partially)
the pattern(s).
</para>
@@ -224,7 +235,7 @@
<listitem>
<para>
Contains an array of file extensions to parse for PHP code.
-
+
Default: php, php4, inc, phtml
</para>
</listitem>
@@ -236,7 +247,7 @@
<listitem>
<para>
Contains an array of files to ignore.
-
+
File names are case insensitive.
</para>
</listitem>
@@ -273,7 +284,7 @@
<listitem>
<para>
Contains an array of directories to ignore.
-
+
Directory names are case insensitive.
</para>
</listitem>