cvs: phpdoc /en/reference/filesystem/functions fnmatch.xml link.xml linkinfo.xml readlink.xml symlink.xml /en/reference/network/functions
checkdnsrr.xml dns-get-record.xml getmxrr.xml /en/reference/sockets/functions socket-create-pair.xml /en/reference/stream/functions
stream-socket-pair.xml

From: Date: Thu, 29 Jan 2009 10:21:20 +0000
Subject: cvs: phpdoc /en/reference/filesystem/functions fnmatch.xml link.xml linkinfo.xml readlink.xml symlink.xml /en/reference/network/functions
checkdnsrr.xml dns-get-record.xml getmxrr.xml /en/reference/sockets/functions socket-create-pair.xml /en/reference/stream/functions
stream-socket-pair.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3106@lists.php.net to get a copy of this message
kalle Thu Jan 29 10:21:20 2009 UTC Modified files: /phpdoc/en/reference/filesystem/functions fnmatch.xml link.xml linkinfo.xml readlink.xml symlink.xml /phpdoc/en/reference/network/functions checkdnsrr.xml dns-get-record.xml getmxrr.xml /phpdoc/en/reference/sockets/functions socket-create-pair.xml /phpdoc/en/reference/stream/functions stream-socket-pair.xml Log: * Document Windows support for: fnmatch(), link(), linkinfo(), readlink(), symlink(), checkdnsrr(), dns_get_record(), getmxrr() and stream_socket_pair() * Document that socket_create_pair() was unavailable on Windows between 4.3 and 5.3, aswell as making the example work on Windows and fix a syntax error in there

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/fnmatch.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc/en/reference/filesystem/functions/fnmatch.xml diff -u phpdoc/en/reference/filesystem/functions/fnmatch.xml:1.17 phpdoc/en/reference/filesystem/functions/fnmatch.xml:1.18 --- phpdoc/en/reference/filesystem/functions/fnmatch.xml:1.17 Fri Jan 16 16:14:25 2009 +++ phpdoc/en/reference/filesystem/functions/fnmatch.xml Thu Jan 29 10:21:19 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fnmatch"> <refnamediv> <refname>fnmatch</refname> @@ -69,6 +69,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -91,8 +115,7 @@ &reftitle.notes; <warning> <para> - For now this function is not available on Windows or other non-POSIX - compliant systems. + For now this function is not available on non-POSIX compliant systems. </para> </warning> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/link.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc/en/reference/filesystem/functions/link.xml diff -u phpdoc/en/reference/filesystem/functions/link.xml:1.12 phpdoc/en/reference/filesystem/functions/link.xml:1.13 --- phpdoc/en/reference/filesystem/functions/link.xml:1.12 Tue Oct 14 15:10:17 2008 +++ phpdoc/en/reference/filesystem/functions/link.xml Thu Jan 29 10:21:19 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.link"> <refnamediv> <refname>link</refname> @@ -49,6 +49,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -72,7 +96,6 @@ <refsect1 role="notes"> &reftitle.notes; &note.no-remote; - &note.no-windows; </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/linkinfo.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/linkinfo.xml diff -u phpdoc/en/reference/filesystem/functions/linkinfo.xml:1.10 phpdoc/en/reference/filesystem/functions/linkinfo.xml:1.11 --- phpdoc/en/reference/filesystem/functions/linkinfo.xml:1.10 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/filesystem/functions/linkinfo.xml Thu Jan 29 10:21:19 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.linkinfo"> <refnamediv> <refname>linkinfo</refname> @@ -47,6 +47,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -65,11 +89,6 @@ </para> </refsect1> - <refsect1 role="notes"> - &reftitle.notes; - &note.no-windows; - </refsect1> - <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/readlink.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/readlink.xml diff -u phpdoc/en/reference/filesystem/functions/readlink.xml:1.10 phpdoc/en/reference/filesystem/functions/readlink.xml:1.11 --- phpdoc/en/reference/filesystem/functions/readlink.xml:1.10 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/filesystem/functions/readlink.xml Thu Jan 29 10:21:19 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.readlink"> <refnamediv> <refname>readlink</refname> @@ -33,6 +33,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> @@ -59,11 +83,6 @@ </para> </refsect1> - <refsect1 role="notes"> - &reftitle.notes; - &note.no-windows; - </refsect1> - <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/symlink.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/symlink.xml diff -u phpdoc/en/reference/filesystem/functions/symlink.xml:1.10 phpdoc/en/reference/filesystem/functions/symlink.xml:1.11 --- phpdoc/en/reference/filesystem/functions/symlink.xml:1.10 Thu Oct 9 20:40:06 2008 +++ phpdoc/en/reference/filesystem/functions/symlink.xml Thu Jan 29 10:21:19 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.symlink"> <refnamediv> <refname>symlink</refname> @@ -51,6 +51,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -73,7 +97,14 @@ <refsect1 role="notes"> &reftitle.notes; - &note.no-windows; + <note> + <simpara> + For Windows only: This function will only function if the + system you run PHP from is Windows Vista/Windows Server 2008 + or greater. Windows versions prior to that does not support + symbolic links. + </simpara> + </note> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/functions/checkdnsrr.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/network/functions/checkdnsrr.xml diff -u phpdoc/en/reference/network/functions/checkdnsrr.xml:1.13 phpdoc/en/reference/network/functions/checkdnsrr.xml:1.14 --- phpdoc/en/reference/network/functions/checkdnsrr.xml:1.13 Mon Apr 14 16:42:54 2008 +++ phpdoc/en/reference/network/functions/checkdnsrr.xml Thu Jan 29 10:21:20 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry xml:id="function.checkdnsrr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>checkdnsrr</refname> @@ -66,6 +66,12 @@ </thead> <tbody> <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + <row> <entry>5.2.4</entry> <entry> TXT <parameter>type</parameter> was added. @@ -87,7 +93,7 @@ &reftitle.notes; <note> <para> - This function is not implemented on Windows platforms. Try the + For compatiblity with Windows before this was implemented, then try the <link xlink:href="&url.php.pear;">PEAR</link> class <link xlink:href="&url.pear.package;Net_DNS">Net_DNS</link>. </para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/functions/dns-get-record.xml?r1=1.28&r2=1.29&diff_format=u Index: phpdoc/en/reference/network/functions/dns-get-record.xml diff -u phpdoc/en/reference/network/functions/dns-get-record.xml:1.28 phpdoc/en/reference/network/functions/dns-get-record.xml:1.29 --- phpdoc/en/reference/network/functions/dns-get-record.xml:1.28 Fri Jan 16 16:14:25 2009 +++ phpdoc/en/reference/network/functions/dns-get-record.xml Thu Jan 29 10:21:20 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <refentry xml:id="function.dns-get-record" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>dns_get_record</refname> @@ -270,6 +270,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -461,8 +485,8 @@ &reftitle.notes; <note> <para> - This function is not implemented on Windows platforms, nor does it - (currently) work on *BSD systems (including Mac). Try the + For compatibility with versions before this function was implemented + on such platforms as Windows, *BSD and MAC. Try the <link xlink:href="&url.php.pear;">PEAR</link> class <link xlink:href="&url.pear.package;Net_DNS">Net_DNS</link>. </para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/functions/getmxrr.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/network/functions/getmxrr.xml diff -u phpdoc/en/reference/network/functions/getmxrr.xml:1.15 phpdoc/en/reference/network/functions/getmxrr.xml:1.16 --- phpdoc/en/reference/network/functions/getmxrr.xml:1.15 Wed Jun 20 22:25:04 2007 +++ phpdoc/en/reference/network/functions/getmxrr.xml Thu Jan 29 10:21:20 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <refentry xml:id="function.getmxrr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>getmxrr</refname> @@ -62,6 +62,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="notes"> &reftitle.notes; <note> @@ -76,7 +100,7 @@ </note> <note> <para> - This function is not implemented on Windows platforms. Try the + For compatiblity with Windows before this was implemented, then try the <link xlink:href="&url.php.pear;">PEAR</link> class <link xlink:href="&url.pear.package;Net_DNS">Net_DNS</link>. </para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/functions/socket-create-pair.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/reference/sockets/functions/socket-create-pair.xml diff -u phpdoc/en/reference/sockets/functions/socket-create-pair.xml:1.19 phpdoc/en/reference/sockets/functions/socket-create-pair.xml:1.20 --- phpdoc/en/reference/sockets/functions/socket-create-pair.xml:1.19 Thu Aug 16 18:27:16 2007 +++ phpdoc/en/reference/sockets/functions/socket-create-pair.xml Thu Jan 29 10:21:20 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> +<!-- $Revision: 1.20 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-create-pair"> <refnamediv> <refname>socket_create_pair</refname> @@ -83,6 +83,37 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now re-enabled on Windows platforms. + </entry> + </row> + <row> + <entry>4.3.0</entry> + <entry> + This function was due to a bug made unavailable on + Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -92,15 +123,19 @@ <![CDATA[ <?php $sockets = array(); + +/* On Windows we need to use AF_INET */ +$domain = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? AF_INET : AF_UNIX); + /* Setup socket pair */ -if (socket_create_pair(AF_UNIX, SOCK_STREAM, 0, $sockets) === false) { +if (socket_create_pair($domain, SOCK_STREAM, 0, $sockets) === false) { echo "socket_create_pair failed. Reason: ".socket_strerror(socket_last_error()); } /* Send and Recieve Data */ if (socket_write($sockets[0], "ABCdef123\n", strlen("ABCdef123\n")) === false) { echo "socket_write() failed. Reason: ".socket_strerror(socket_last_error($sockets[0])); } -if (($data = socket_read($sockets[1], strlen("ABCdef123\n"), PHP_BINARY_READ) === false) { +if (($data = socket_read($sockets[1], strlen("ABCdef123\n"), PHP_BINARY_READ)) === false) { echo "socket_read() failed. Reason: ".socket_strerror(socket_last_error($sockets[1])); } var_dump($data); @@ -122,6 +157,7 @@ $ary = array(); $strone = 'Message From Parent.'; $strtwo = 'Message From Child.'; + if (socket_create_pair(AF_UNIX, SOCK_STREAM, 0, $ary) === false) { echo "socket_create_pair() failed. Reason: ".socket_strerror(socket_last_error()); } http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stream/functions/stream-socket-pair.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/stream/functions/stream-socket-pair.xml diff -u phpdoc/en/reference/stream/functions/stream-socket-pair.xml:1.5 phpdoc/en/reference/stream/functions/stream-socket-pair.xml:1.6 --- phpdoc/en/reference/stream/functions/stream-socket-pair.xml:1.5 Wed May 28 04:42:07 2008 +++ phpdoc/en/reference/stream/functions/stream-socket-pair.xml Thu Jan 29 10:21:20 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry xml:id="function.stream-socket-pair" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>stream_socket_pair</refname> @@ -79,6 +79,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + This function is now available on Windows platforms. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -131,10 +155,6 @@ </para> </refsect1> - <refsect1 role="notes"> - &reftitle.notes; - &note.no-windows; - </refsect1> </refentry> <!-- Keep this comment at the end of the file
« previous php.doc.cvs (#3106) next »