[PHP-DOC] #32044 [Opn-Csd]: Problem with String conversion to numbers example in polish doc
ID: 32044 Updated by: [EMAIL PROTECTED] Reported By: mrkwdk at vp dot pl -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: windows PHP Version: 4.3.10 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Fixed. This chapter translation needs to be updated. I'll try to do it soon. Previous Comments: [2005-02-21 14:27:43] mrkwdk at vp dot pl Description: The problem is with the type returning - it should be double or float. Reproduce code: --- $foo = 10.0 winek + 1;// $foo jest typu integer (11) -- Edit this bug report at http://bugs.php.net/?id=32044edit=1
[PHP-DOC] #31998 [Opn-Csd]: Bad french translation of safe_mode_include_dir
ID: 31998 Updated by: [EMAIL PROTECTED] Reported By: cblin at tennaxia dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: * PHP Version: 5.0.2 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: [2005-02-16 17:02:16] cblin at tennaxia dot com Description: English (and good behavior): UID/GID checks are bypassed when including files from this directory and its subdirectories (directory must also be in include_path or full path must including). French (and bad behavior): Les vérifications basées sur le UID ou GID sont ignorées lorsque les fichiers sont issus du dossier et de ses sous-dossiers, indiqué dans cette directive. Les dossiers peuvent être aussi dans l'include_path ou bien il faut inclure le chemin complet. The translation is missing the when including files from distinction. Bug fix: replace les fichiers sont issus par les fichiers sont inclus -- Edit this bug report at http://bugs.php.net/?id=31998edit=1
[PHP-DOC] #32071 [Opn-Csd]: [DOC] French : move_uploaded_file Typo
ID: 32071 Updated by: [EMAIL PROTECTED] Reported By: jsgoupil at lookstrike dot com -Status: Open +Status: Closed Bug Type:Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: [2005-02-23 00:57:17] jsgoupil at lookstrike dot com Description: $Revision: 1.10 $ fr/reference/filesystem/functions/move-uploaded-file.xml n'es tpas - n'est pas opétation - opération Jean-Sébastien Goupil -- Edit this bug report at http://bugs.php.net/?id=32071edit=1
[PHP-DOC] #32072 [Opn-Csd]: [DOC] French : Upload Typo
ID: 32072 Updated by: [EMAIL PROTECTED] Reported By: jsgoupil at lookstrike dot com -Status: Open +Status: Closed Bug Type:Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: [2005-02-23 01:42:15] jsgoupil at lookstrike dot com Description: $Revision: 1.37 $ fr/features/file-upload.xml concidéré - considéré Value: 6. - Valeur : 6. (mettre la même nomenclature) Si une limite de mémoire est activé - activée de faible connexions - au pluriel ou singulier ? des téléchargement multiples - téléchargements mega-octets - Larousse2002 dit : mégaoctets Le mot téléchargé est utilisé sur certaines pages alors que parfois le mot uploadé est utilisé. Il faudrait être constant :) Jean-Sébastien Goupil -- Edit this bug report at http://bugs.php.net/?id=32072edit=1
[PHP-DOC] cvs: phpdoc /en/reference/stream/functions stream-socket-pair.xml
nlopess Wed Feb 23 07:52:26 2005 EDT Modified files: /phpdoc/en/reference/stream/functions stream-socket-pair.xml Log: convert to new style, expland explanations and add an example http://cvs.php.net/diff.php/phpdoc/en/reference/stream/functions/stream-socket-pair.xml?r1=1.1r2=1.2ty=u Index: phpdoc/en/reference/stream/functions/stream-socket-pair.xml diff -u phpdoc/en/reference/stream/functions/stream-socket-pair.xml:1.1 phpdoc/en/reference/stream/functions/stream-socket-pair.xml:1.2 --- phpdoc/en/reference/stream/functions/stream-socket-pair.xml:1.1 Tue Dec 21 12:32:19 2004 +++ phpdoc/en/reference/stream/functions/stream-socket-pair.xml Wed Feb 23 07:52:26 2005 @@ -1,27 +1,137 @@ ?xml version='1.0' encoding='iso-8859-1'? -!-- $Revision: 1.1 $ -- - refentry id=function.stream-socket-pair - refnamediv -refnamestream_socket_pair/refname -refpurpose - Creates a pair of connected, indistinguishable socket streams -/refpurpose - /refnamediv - refsect1 -titleDescription/title -methodsynopsis - typearray/typemethodnamestream_socket_pair/methodname - methodparamtypeint/typeparameterdomain/parameter/methodparam - methodparamtypeint/typeparametertype/parameter/methodparam - methodparamtypeint/typeparameterprotocol/parameter/methodparam -/methodsynopsis +!-- $Revision: 1.2 $ -- +refentry id=function.stream-socket-pair + refnamediv + refnamestream_socket_pair/refname + refpurpose + Creates a pair of connected, indistinguishable socket streams + /refpurpose + /refnamediv + refsect1 role=description + reftitle.description; + methodsynopsis + typearray/typemethodnamestream_socket_pair/methodname + methodparamtypeint/typeparameterdomain/parameter/methodparam + methodparamtypeint/typeparametertype/parameter/methodparam + methodparamtypeint/typeparameterprotocol/parameter/methodparam + /methodsynopsis + para + functionstream_socket_pair/function creates a pair of connected, + indistinguishable socket streams. This function is commonly used in IPC + (Inter-Process Communication). + /para + /refsect1 + + refsect1 role=parameters + reftitle.parameters; + para + variablelist +varlistentry + termparameterdomain/parameter/term + listitem + para + The protocol family to be used: constantSTREAM_PF_INET/constant, + constantSTREAM_PF_INET6/constant or + constantSTREAM_PF_UNIX/constant + /para + /listitem +/varlistentry +varlistentry + termparametertype/parameter/term + listitem + para + The type of communication to be used: + constantSTREAM_SOCK_DGRAM/constant, + constantSTREAM_SOCK_RAW/constant, + constantSTREAM_SOCK_RDM/constant, + constantSTREAM_SOCK_SEQPACKET/constant or + constantSTREAM_SOCK_STREAM/constant + /para + /listitem +/varlistentry +varlistentry + termparameterprotocol/parameter/term + listitem + para + The protocol to be used: constantSTREAM_IPPROTO_ICMP/constant, + constantSTREAM_IPPROTO_IP/constant, + constantSTREAM_IPPROTO_RAW/constant, + constantSTREAM_IPPROTO_TCP/constant or + constantSTREAM_IPPROTO_UDP/constant + /para + /listitem +/varlistentry + /variablelist + /para + note + simpara +Please consult the link linkend=stream.constantsStreams constant + list/link for further details on each constant. + /simpara + /note + /refsect1 + + refsect1 role=returnvalues + reftitle.returnvalues; + para + Returns an typearray/type with the two socket resources on success, or + false; on failure. + /para + /refsect1 + + refsect1 role=examples + reftitle.examples; + para + example +titleA functionstream_socket_pair/function example/title para - functionstream_socket_pair/function creates a pair of connected, - indistinguishable socket streams. This function is commonly used in IPC - (InterProcess Communication). + This example shows the basic usage of + functionstream_socket_pair/function in Inter-Process Comunication. /para - /refsect1 - /refentry +programlisting role=php +![CDATA[ +?php + +$sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP); +$pid = pcntl_fork(); + +if ($pid == -1) { + die('could not fork'); + +} else if ($pid) { + /* parent */ +fclose($sockets[0]); + +fwrite($sockets[1], child PID: $pid\n); +echo fgets($sockets[1]); + +fclose($sockets[1]); + +} else { +/* child */ +fclose($sockets[1]); + +fwrite($sockets[0], message from child\n); +echo fgets($sockets[0]); + +fclose($sockets[0]); +} + +? +]] +/programlisting +example.outputs.similar; +screen +![CDATA[ +child PID: 1378 +message from child +]] +/screen + /example + /para + /refsect1 + +/refentry !-- Keep this comment at the end of the file Local variables:
[PHP-DOC] #32083 [NEW]: stream_set_blocking : mode boolean or integer ?
From: jsgoupil at lookstrike dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: stream_set_blocking : mode boolean or integer ? Description: In the doc : en/function.stream-set-blocking.php It says that the mode is an integer but you give only TRUE or FALSE for the mode. So, perhaps it is a bool argument or more explanations about the mode should be written. -- Edit bug report at http://bugs.php.net/?id=32083edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32083r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32083r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32083r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32083r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32083r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32083r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32083r=needscript Try newer version: http://bugs.php.net/fix.php?id=32083r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32083r=support Expected behavior: http://bugs.php.net/fix.php?id=32083r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32083r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32083r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32083r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32083r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32083r=dst IIS Stability: http://bugs.php.net/fix.php?id=32083r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32083r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32083r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32083r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32083r=mysqlcfg
[PHP-DOC] #32083 [Opn-Csd]: stream_set_blocking : mode boolean or integer ?
ID: 32083 Updated by: [EMAIL PROTECTED] Reported By: jsgoupil at lookstrike dot com -Status: Open +Status: Closed Bug Type:Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. The proto is right (int). You can use true/false because they are converted to 1/0. I've changed the values. Previous Comments: [2005-02-23 20:40:47] [EMAIL PROTECTED] From the source, it's definitely an integer. But a boolean would make more sense to me. Or the docs need to change to if mode is 0, [...], and if otherwise, [...] [2005-02-23 20:14:29] jsgoupil at lookstrike dot com Description: In the doc : en/function.stream-set-blocking.php It says that the mode is an integer but you give only TRUE or FALSE for the mode. So, perhaps it is a bool argument or more explanations about the mode should be written. -- Edit this bug report at http://bugs.php.net/?id=32083edit=1
[PHP-DOC] #32083 [Opn]: stream_set_blocking : mode boolean or integer ?
ID: 32083 Updated by: [EMAIL PROTECTED] Reported By: jsgoupil at lookstrike dot com Status: Open Bug Type:Documentation problem PHP Version: Irrelevant New Comment: From the source, it's definitely an integer. But a boolean would make more sense to me. Or the docs need to change to if mode is 0, [...], and if otherwise, [...] Previous Comments: [2005-02-23 20:14:29] jsgoupil at lookstrike dot com Description: In the doc : en/function.stream-set-blocking.php It says that the mode is an integer but you give only TRUE or FALSE for the mode. So, perhaps it is a bool argument or more explanations about the mode should be written. -- Edit this bug report at http://bugs.php.net/?id=32083edit=1
[PHP-DOC] cvs: phpdoc /en/reference/stream/functions stream-set-blocking.xml
nlopess Wed Feb 23 14:40:11 2005 EDT Modified files: /phpdoc/en/reference/stream/functions stream-set-blocking.xml Log: fix #32083: inconsistencies between proto and description http://cvs.php.net/diff.php/phpdoc/en/reference/stream/functions/stream-set-blocking.xml?r1=1.3r2=1.4ty=u Index: phpdoc/en/reference/stream/functions/stream-set-blocking.xml diff -u phpdoc/en/reference/stream/functions/stream-set-blocking.xml:1.3 phpdoc/en/reference/stream/functions/stream-set-blocking.xml:1.4 --- phpdoc/en/reference/stream/functions/stream-set-blocking.xml:1.3Wed Sep 17 08:31:11 2003 +++ phpdoc/en/reference/stream/functions/stream-set-blocking.xmlWed Feb 23 14:40:08 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- splitted from ./en/functions/network.xml, last change in rev 1.2 -- refentry id=function.stream-set-blocking refnamediv @@ -14,8 +14,8 @@ methodparamtypeint/typeparametermode/parameter/methodparam /methodsynopsis para - If parametermode/parameter is false;, the given stream - will be switched to non-blocking mode, and if true;, it + If parametermode/parameter is 0, the given stream + will be switched to non-blocking mode, and if 1, it will be switched to blocking mode. This affects calls like functionfgets/function and functionfread/function that read from the stream. In non-blocking mode an
[PHP-DOC] cvs: phpdoc /en/reference/sockets/functions socket-bind.xml
aidan Thu Feb 24 02:09:28 2005 EDT Modified files: /phpdoc/en/reference/sockets/functions socket-bind.xml Log: Updated to new docskel. Added example. http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-bind.xml?r1=1.6r2=1.7ty=u Index: phpdoc/en/reference/sockets/functions/socket-bind.xml diff -u phpdoc/en/reference/sockets/functions/socket-bind.xml:1.6 phpdoc/en/reference/sockets/functions/socket-bind.xml:1.7 --- phpdoc/en/reference/sockets/functions/socket-bind.xml:1.6 Sun Feb 13 09:19:01 2005 +++ phpdoc/en/reference/sockets/functions/socket-bind.xml Thu Feb 24 02:09:27 2005 @@ -1,57 +1,142 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.6 $ -- -!-- splitted from ./en/functions/sockets.xml, last change in rev 1.3 -- - refentry id=function.socket-bind - refnamediv -refnamesocket_bind/refname -refpurposeBinds a name to a socket/refpurpose - /refnamediv - refsect1 -titleDescription/title - methodsynopsis - typebool/typemethodnamesocket_bind/methodname - methodparamtyperesource/typeparametersocket/parameter/methodparam - methodparamtypestring/typeparameteraddress/parameter/methodparam - methodparam choice=opttypeint/typeparameterport/parameter/methodparam - /methodsynopsis -para - functionsocket_bind/function binds the name given in - parameteraddress/parameter to the socket described by - parametersocket/parameter, which must be a valid socket - resource created with functionsocket_create/function. -/para -para - The parameteraddress/parameter parameter is either an IP - address in dotted-quad notation - (e.g. literal127.0.0.1/literal), if the socket is of the - constantAF_INET/constant family; or the pathname of a - Unix-domain socket, if the socket family is - constantAF_UNIX/constant. -/para -para - The parameterport/parameter parameter is only used when - connecting to an constantAF_INET/constant socket, and - designates the port on the remote host to which a connection - should be made. -/para -para - return.success; The error code can be retrieved with - functionsocket_last_error/function. This code may be passed to - functionsocket_strerror/function to get a textual explanation of the - error. Note that functionsocket_last_error/function is reported to - return an invalid error code in case you are trying to bind the socket - to a wrong address that does not belong to your Windows 9x/ME machine. -/para -para - See also - functionsocket_connect/function, - functionsocket_listen/function, - functionsocket_create/function, - functionsocket_last_error/function and - functionsocket_strerror/function. -/para - /refsect1 - /refentry +!-- $Revision: 1.7 $ -- +refentry id=function.socket-bind + refnamediv + refnamesocket_bind/refname + refpurposeBinds a name to a socket/refpurpose + /refnamediv + + refsect1 role=description + reftitle.description; + methodsynopsis + typebool/typemethodnamesocket_bind/methodname + methodparamtyperesource/typeparametersocket/parameter/methodparam + methodparamtypestring/typeparameteraddress/parameter/methodparam + methodparam choice=opttypeint/typeparameterport/parameter/methodparam + /methodsynopsis + para + Binds the name given in parameteraddress/parameter to the socket + described by parametersocket/parameter. + /para + /refsect1 + + refsect1 role=parameters + reftitle.parameters; + para + variablelist +varlistentry + termparametersocket/parameter/term + listitem + para + A valid socket resource created with functionsocket_create/function. + /para + /listitem +/varlistentry +varlistentry + termparameteraddress/parameter/term + listitem + para + If the socket is of the constantAF_INET/constant family, the + parameteraddress/parameter is an IP in dotted-quad notation + (e.g. literal127.0.0.1/literal). + /para + para + If the socket is of the constantAF_UNIX/constant family, the + parameteraddress/parameter is the pathname of a + Unix-domain socket (e.g. filename/tmp/my.sock/filename). + /para + /listitem +/varlistentry +varlistentry + termparameterport/parameter (Optional)/term + listitem + para + The parameterport/parameter parameter is only used when + connecting to an constantAF_INET/constant socket, and + designates the port on the remote host to which a connection + should be made. + /para + /listitem +/varlistentry + /variablelist + /para + /refsect1 + + refsect1 role=returnvalues + reftitle.returnvalues; + parareturn.success;/para + para + The error code can be retrieved with functionsocket_last_error/function. + This code may be passed to functionsocket_strerror/function to get a + textual
[PHP-DOC] cvs: phpdoc /en/reference/sockets/functions socket-bind.xml
aidan Thu Feb 24 02:23:59 2005 EDT Modified files: /phpdoc/en/reference/sockets/functions socket-bind.xml Log: Send a valid http request http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-bind.xml?r1=1.7r2=1.8ty=u Index: phpdoc/en/reference/sockets/functions/socket-bind.xml diff -u phpdoc/en/reference/sockets/functions/socket-bind.xml:1.7 phpdoc/en/reference/sockets/functions/socket-bind.xml:1.8 --- phpdoc/en/reference/sockets/functions/socket-bind.xml:1.7 Thu Feb 24 02:09:27 2005 +++ phpdoc/en/reference/sockets/functions/socket-bind.xml Thu Feb 24 02:23:58 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.7 $ -- +!-- $Revision: 1.8 $ -- refentry id=function.socket-bind refnamediv refnamesocket_bind/refname @@ -92,7 +92,7 @@ $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); // An example list of IP addresses owned by the computer -$sourceips['kenny']= '127.0.0.1'; +$sourceips['kevin']= '127.0.0.1'; $sourceips['madcoder'] = '127.0.0.2'; // Bind the source address @@ -102,7 +102,9 @@ socket_connect($sock, '127.0.0.1', 80); // Write -socket_write($sock, GET / HTTP/1.1\r\n\r\n); +$request = 'GET / HTTP/1.1' . \r\n . + 'Host: example.com' . \r\n\; +socket_write($sock, $request); // Close socket_close($sock);
[PHP-DOC] cvs: phpdoc /en/reference/sockets/functions socket-bind.xml
aidan Thu Feb 24 02:38:36 2005 EDT Modified files: /phpdoc/en/reference/sockets/functions socket-bind.xml Log: Fix a host of tiny mistakes http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-bind.xml?r1=1.8r2=1.9ty=u Index: phpdoc/en/reference/sockets/functions/socket-bind.xml diff -u phpdoc/en/reference/sockets/functions/socket-bind.xml:1.8 phpdoc/en/reference/sockets/functions/socket-bind.xml:1.9 --- phpdoc/en/reference/sockets/functions/socket-bind.xml:1.8 Thu Feb 24 02:23:58 2005 +++ phpdoc/en/reference/sockets/functions/socket-bind.xml Thu Feb 24 02:38:36 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.8 $ -- +!-- $Revision: 1.9 $ -- refentry id=function.socket-bind refnamediv refnamesocket_bind/refname @@ -42,7 +42,7 @@ /para para If the socket is of the constantAF_UNIX/constant family, the - parameteraddress/parameter is the pathname of a + parameteraddress/parameter is the path of a Unix-domain socket (e.g. filename/tmp/my.sock/filename). /para /listitem @@ -70,14 +70,6 @@ This code may be passed to functionsocket_strerror/function to get a textual explanation of the error. /para - note - para -Windows 9x/ME compatability note: -functionsocket_last_error/function may return an invalid error code -if trying to bind the socket to a wrong address that does not belong to -your machine. - /para - /note /refsect1 refsect1 role=examples @@ -96,14 +88,14 @@ $sourceips['madcoder'] = '127.0.0.2'; // Bind the source address -socket_bind($sock, $computerips['madcoder']); +socket_bind($sock, $sourceips['madcoder']); // Connect to destination address socket_connect($sock, '127.0.0.1', 80); // Write $request = 'GET / HTTP/1.1' . \r\n . - 'Host: example.com' . \r\n\; + 'Host: example.com' . \r\n\r\n; socket_write($sock, $request); // Close @@ -124,6 +116,14 @@ functionsocket_connect/function. /para /note + note + para +Windows 9x/ME compatibility note: +functionsocket_last_error/function may return an invalid error code +if trying to bind the socket to a wrong address that does not belong to +your machine. + /para + /note /refsect1 refsect1 role=seealso