Re: [PHP-DOC] Proposal: CHANGELOG

2004-08-18 Thread Curt Zirzow
* Thus wrote Philip Olson:
 
 typeinteger/type parameter role=ref 
   choice=optwidth/parameter
  
   VS
  
 parameter role=ref choiceopt type=integerwidth/parameter
   
   Parameter has no type attribute, so only the former is possible.
  
  Ups, parameter also has no choice attribute, it is of paramdef. Which in 
  turn can only be added inside a funcprototype according to the DocBook 
  DTD. Couldn't we come up with some DocBook friendly alternative? A good 
  idea would be to somehow reference the parameter already defined in the 
  funcprototype, so only one place needs editing when parameters get 
  changed. Then livedocs could resolve the reference and copy the 
  parameter info (type, by reference, name) to the right place in the 
  variablelist.
 
 We may need a livedocs person to tackle this as the structure is already
 in place.  Using the same example we have the following in the 
 methodsynopsis (split from one line to fit in this email):
  
   methodparam choice=opt
typeint/typeparameter role=referencewidth/parameter
   /methodparam  

I added a patch to do this.

  http://www.powertrip.co.za/livedocs/


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!


[PHP-DOC] #20760 [Opn]: strange behaviour regarding $this

2004-08-18 Thread vrana
 ID:   20760
 Updated by:   [EMAIL PROTECTED]
 Reported By:  krennmair at webdynamite dot com
 Status:   Open
 Bug Type: Documentation problem
 Operating System: RedHat 8.0
 PHP Version:  4.2.2
 Assigned To:  didou
 New Comment:

I think it's already documented at
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php :

In this context, there is a current object and it may have object
variables. Thus, when used from WITHIN an object function, you may use
$this and object variables.


Previous Comments:


[2002-12-03 21:06:25] wb at sapo dot pt

i once had made the same 'mistake': i had split up a inheritance chain
at some place but then i needed a function of the other inheritance
trtee after the split. in fact, it worked out fine - so fine that i
even didn´t notice that the superclass call was outside the inheritance
chain. when i later noticed it i removed it because i got worried if it
was desired behaviour or if it could disappear in some later version of
php. but if you tell me that i can rely on it i will use it.



[2002-12-02 05:17:04] krennmair at webdynamite dot com

OK, but mark it in the documentation with a big red callsign. ;-)

But what I'm still interested in, is _why_ this is intended. The only
reason I can think of is to confuse other programmers, but that would
be absurd.



[2002-12-02 04:29:18] [EMAIL PROTECTED]

This is indeed intended behavior, but it should be documented. I have
some logs about this, but can not find them now.

Derick



[2002-12-02 04:24:24] krennmair at webdynamite dot com

We have found a strange behaviour regarding $this. One of our
programmers made a mistake during programming, which led to
Heisenbugs, which were not quite easy to find and fix. We could
reduce the problem to a simple program to present it:

?

class Foo {

  var $bla;

  function quux() {
$this-bla = 5;
  }

}

class Bar {

  var $bla;

  function do_stuff() {
$this-bla = 10;
Foo::quux();
echo $this-bla;
  }
}

$blabla = new Bar;

$blabla-do_stuff();

?

The output is: 5

Obviously, Bar::do_stuff() is not allowed to call Foo::quux() since
Foo::quux() is using $this. Now the strange thing comes: instead of
casting an error, PHP happily accepts the code. But the $this in
Foo::quux is the same $this as in Bar::do_stuff(), i.e. $blabla, and
that's why the output is 5. Is this behaviour intended? At least I
couldn't find it documented anywhere. IMO the user should be warned
when $this is used in a static function.




-- 
Edit this bug report at http://bugs.php.net/?id=20760edit=1


[PHP-DOC] cvs: phpdoc /en/reference/funchand/functions register-shutdown-function.xml

2004-08-18 Thread Jakub Vrana
vrana   Wed Aug 18 03:48:38 2004 EDT

  Modified files:  
/phpdoc/en/reference/funchand/functions 
register-shutdown-function.xml 
  Log:
  Additional parameters can be passed
  
http://cvs.php.net/diff.php/phpdoc/en/reference/funchand/functions/register-shutdown-function.xml?r1=1.5r2=1.6ty=u
Index: phpdoc/en/reference/funchand/functions/register-shutdown-function.xml
diff -u phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.5 
phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.6
--- phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.5   Sun 
Jun  1 16:19:24 2003
+++ phpdoc/en/reference/funchand/functions/register-shutdown-function.xml   Wed 
Aug 18 03:48:37 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
 !-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --
   refentry id=function.register-shutdown-function
refnamediv
@@ -13,6 +13,8 @@
  methodsynopsis
   typevoid/typemethodnameregister_shutdown_function/methodname
   methodparamtypecallback/typeparameterfunction/parameter/methodparam
+  methodparam 
choice=opttypemixed/typeparameterparameter/parameter/methodparam
+  methodparam 
choice=opttypemixed/typeparameter.../parameter/methodparam
  /methodsynopsis
 simpara
  Registers the function named by parameterfunction/parameter to be
@@ -31,6 +33,11 @@
  to send output to the browser using functionecho/function or
  functionprint/function, or retrieve the contents of any output
  buffers using functionob_get_contents/function.
+/para
+para
+ As of PHP 4, it is possible to pass parameters to shutdown function by
+ passing additional parameters to
+ functionregister_shutdown_function/function.
 /para
 note
  para




[PHP-DOC] cvs: phpdoc /en/reference/info/functions get-defined-constants.xml

2004-08-18 Thread Jakub Vrana
vrana   Wed Aug 18 07:35:32 2004 EDT

  Modified files:  
/phpdoc/en/reference/info/functions get-defined-constants.xml 
  Log:
  Categorize parameter
  # Please check my grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/get-defined-constants.xml?r1=1.7r2=1.8ty=u
Index: phpdoc/en/reference/info/functions/get-defined-constants.xml
diff -u phpdoc/en/reference/info/functions/get-defined-constants.xml:1.7 
phpdoc/en/reference/info/functions/get-defined-constants.xml:1.8
--- phpdoc/en/reference/info/functions/get-defined-constants.xml:1.7Mon Aug  2 
05:32:13 2004
+++ phpdoc/en/reference/info/functions/get-defined-constants.xmlWed Aug 18 
07:35:32 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.7 $ --
+!-- $Revision: 1.8 $ --
 !-- splitted from ./en/functions/info.xml, last change in rev 1.71 --
   refentry id=function.get-defined-constants
refnamediv
@@ -13,7 +13,7 @@
 titleDescription/title
  methodsynopsis
   typearray/typemethodnameget_defined_constants/methodname
-  void/
+  methodparam 
choice=opttypemixed/typeparametercategorize/parameter/methodparam
  /methodsynopsis
 para
  This function returns the names and values of all the constants
@@ -55,6 +55,69 @@
 ]]
   /screen
  /informalexample
+/para
+para
+ As of PHP 5, you can pass an optional parameter
+ parametercategorize/parameter causing that this function will return
+ multi-dimensional array with categories in keys of the first dimension and
+ constants and their values in the second dimension.
+ informalexample
+  programlisting role=php
+![CDATA[
+?php
+define(MY_CONSTANT, 1);
+print_r(get_defined_constants(true));
+?
+]]
+  /programlisting
+  example.outputs.similar;
+  screen
+![CDATA[
+Array
+(
+[internal] = Array
+(
+[E_ERROR] = 1
+[E_WARNING] = 2
+[E_PARSE] = 4
+[E_NOTICE] = 8
+[E_CORE_ERROR] = 16
+[E_CORE_WARNING] = 32
+[E_COMPILE_ERROR] = 64
+[E_COMPILE_WARNING] = 128
+[E_USER_ERROR] = 256
+[E_USER_WARNING] = 512
+[E_USER_NOTICE] = 1024
+[E_ALL] = 2047
+[TRUE] = 1
+)
+
+[pcre] = Array
+(
+[PREG_PATTERN_ORDER] = 1
+[PREG_SET_ORDER] = 2
+[PREG_OFFSET_CAPTURE] = 256
+[PREG_SPLIT_NO_EMPTY] = 1
+[PREG_SPLIT_DELIM_CAPTURE] = 2
+[PREG_SPLIT_OFFSET_CAPTURE] = 4
+[PREG_GREP_INVERT] = 1
+)
+
+[user] = Array
+(
+[MY_CONSTANT] = 1
+)
+
+)
+]]
+  /screen
+ /informalexample
+ note
+  para
+   Value of the parametercategorize/parameter parameter is irrelevant,
+   only presence is considered.
+  /para
+ /note
 /para
 para
  See also 


[PHP-DOC] cvs: phpdoc /en/reference/hwapi/functions hwapi-attribute-key.xml hwapi-attribute-langdepvalue.xml hwapi-attribute-value.xml hwapi-attribute-values.xml hwapi-checkin.xml hwapi-checkout.xml hwapi-children.xml hwapi-content-mimetype.xml hwapi-content-read.xml hwapi-content.xml hwapi-copy.xml hwapi-dbstat.xml hwapi-dcstat.xml hwapi-dstanchors.xml hwapi-dstofsrcanchors.xml hwapi-error-count.xml hwapi-error-reason.xml hwapi-find.xml hwapi-ftstat.xml hwapi-hwstat.xml hwapi-identify.xml hwapi-info.xml hwapi-insert.xml hwapi-insertanchor.xml hwapi-insertcollection.xml hwapi-insertdocument.xml hwapi-link.xml hwapi-lock.xml hwapi-move.xml hwapi-object-assign.xml hwapi-object-attreditable.xml hwapi-object-count.xml hwapi-object-insert.xml hwapi-object-remove.xml hwapi-object-title.xml hwapi-object-value.xml hwapi-objectbyanchor.xml hwapi-parents.xml hwapi-reason-description.xml hwapi-reason-type.xml hwapi-remove.xml hwapi-replace.xml hwapi-setcommitedversion.xml hwapi-srcanchors.xml hwapi-srcsofdst.xml hwapi-unlock.xml hwapi-user.xml hwapi-userlist.xml

2004-08-18 Thread Jakub Vrana
vrana   Wed Aug 18 09:21:50 2004 EDT

  Modified files:  
/phpdoc/en/reference/hwapi/functionshwapi-attribute-key.xml 
hwapi-attribute-langdepvalue.xml 
hwapi-attribute-value.xml 
hwapi-attribute-values.xml 
hwapi-checkin.xml 
hwapi-checkout.xml 
hwapi-children.xml 
hwapi-content-mimetype.xml 
hwapi-content-read.xml 
hwapi-content.xml 
hwapi-copy.xml 
hwapi-dbstat.xml 
hwapi-dcstat.xml 
hwapi-dstanchors.xml 
hwapi-dstofsrcanchors.xml 
hwapi-error-count.xml 
hwapi-error-reason.xml 
hwapi-find.xml 
hwapi-ftstat.xml 
hwapi-hwstat.xml 
hwapi-identify.xml 
hwapi-info.xml 
hwapi-insert.xml 
hwapi-insertanchor.xml 
hwapi-insertcollection.xml 
hwapi-insertdocument.xml 
hwapi-link.xml hwapi-lock.xml 
hwapi-move.xml 
hwapi-object-assign.xml 
hwapi-object-attreditable.xml 
hwapi-object-count.xml 
hwapi-object-insert.xml 
hwapi-object-remove.xml 
hwapi-object-title.xml 
hwapi-object-value.xml 
hwapi-objectbyanchor.xml 
hwapi-parents.xml 
hwapi-reason-description.xml 
hwapi-reason-type.xml 
hwapi-remove.xml 
hwapi-replace.xml 
hwapi-setcommitedversion.xml 
hwapi-srcanchors.xml 
hwapi-srcsofdst.xml 
hwapi-unlock.xml 
hwapi-user.xml 
hwapi-userlist.xml 
  Log:
  Add object to methodname
  http://cvs.php.net/diff.php/phpdoc/en/reference/hwapi/functions/hwapi-attribute-key.xml?r1=1.5r2=1.6ty=u
Index: phpdoc/en/reference/hwapi/functions/hwapi-attribute-key.xml
diff -u phpdoc/en/reference/hwapi/functions/hwapi-attribute-key.xml:1.5 
phpdoc/en/reference/hwapi/functions/hwapi-attribute-key.xml:1.6
--- phpdoc/en/reference/hwapi/functions/hwapi-attribute-key.xml:1.5 Tue Mar  9 
05:38:12 2004
+++ phpdoc/en/reference/hwapi/functions/hwapi-attribute-key.xml Wed Aug 18 09:21:49 
2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1' ?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
 !-- splitted from ./en/functions/hwapi.xml, last change in rev 1.1 --
   refentry id=function.hwapi-attribute-key
refnamediv
@@ -9,7 +9,7 @@
refsect1
 titleDescription/title
 methodsynopsis
- typestring/typemethodnamekey/methodname
+ typestring/typemethodnamehw_api_attribute-key/methodname
  void/
 /methodsynopsis
 para
http://cvs.php.net/diff.php/phpdoc/en/reference/hwapi/functions/hwapi-attribute-langdepvalue.xml?r1=1.4r2=1.5ty=u
Index: phpdoc/en/reference/hwapi/functions/hwapi-attribute-langdepvalue.xml
diff -u phpdoc/en/reference/hwapi/functions/hwapi-attribute-langdepvalue.xml:1.4 
phpdoc/en/reference/hwapi/functions/hwapi-attribute-langdepvalue.xml:1.5
--- phpdoc/en/reference/hwapi/functions/hwapi-attribute-langdepvalue.xml:1.4Mon 
Jun  2 13:00:51 2003
+++ phpdoc/en/reference/hwapi/functions/hwapi-attribute-langdepvalue.xmlWed 
Aug 18 09:21:49 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' 

[PHP-DOC] Mailing CVS commits

2004-08-18 Thread Jakub Vrana
Hello!

It seems that sending e-mails for CVS commits are temporarily
unavailable. When I commit something to phpdoc, commit is successful but
no mail to the list is sent. This is what CVS says:

Checking in check-references.php;
/repository/phpdoc/scripts/check-references.php,v  --  check-references.php
new revision: 1.6; previous revision: 1.5
done
(about 70 seconds of silence)
Mailing the commit email to [EMAIL PROTECTED]
connect 216.92.131.4:25 failed at /repository/CVSROOT/loginfo.pl line 260.

It worked today at 13:20 GMT yet but doesn't work at this moment.

Jakub Vrana


[PHP-DOC] Re: Mailing CVS commits

2004-08-18 Thread Wez Furlong
The lists box appears to be having a problem; we are on the case.
--Wez.
Jakub Vrana wrote:
Hello!
It seems that sending e-mails for CVS commits are temporarily
unavailable. When I commit something to phpdoc, commit is successful but
no mail to the list is sent. This is what CVS says:
Checking in check-references.php;
/repository/phpdoc/scripts/check-references.php,v  --  check-references.php
new revision: 1.6; previous revision: 1.5
done
(about 70 seconds of silence)
Mailing the commit email to [EMAIL PROTECTED]
connect 216.92.131.4:25 failed at /repository/CVSROOT/loginfo.pl line 260.
It worked today at 13:20 GMT yet but doesn't work at this moment.
Jakub Vrana


[PHP-DOC] Re: Mailing CVS commits

2004-08-18 Thread Derick Rethans
On Wed, 18 Aug 2004, Jakub Vrana wrote:

 It seems that sending e-mails for CVS commits are temporarily
 unavailable. When I commit something to phpdoc, commit is successful
 but no mail to the list is sent. This is what CVS says:

 Checking in check-references.php;
 /repository/phpdoc/scripts/check-references.php,v  --  check-references.php
 new revision: 1.6; previous revision: 1.5
 done
 (about 70 seconds of silence)
 Mailing the commit email to [EMAIL PROTECTED]
 connect 216.92.131.4:25 failed at /repository/CVSROOT/loginfo.pl line 260.

 It worked today at 13:20 GMT yet but doesn't work at this moment.

There are some hardware problems with the lists.php.net machine, expect
some more downtime in the (near) future. It should be working now again.

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org


[PHP-DOC] cvs: phpdoc /scripts check-references.php

2004-08-18 Thread Jakub Vrana
vrana   Wed Aug 18 11:30:24 2004 EDT

  Modified files:  
/phpdoc/scripts check-references.php 
  Log:
  Recognize switch (ZEND_NUM_ARGS())
  
http://cvs.php.net/diff.php/phpdoc/scripts/check-references.php?r1=1.6r2=1.7ty=u
Index: phpdoc/scripts/check-references.php
diff -u phpdoc/scripts/check-references.php:1.6 phpdoc/scripts/check-references.php:1.7
--- phpdoc/scripts/check-references.php:1.6 Wed Aug 18 10:25:39 2004
+++ phpdoc/scripts/check-references.php Wed Aug 18 11:30:24 2004
@@ -124,8 +124,10 @@
fdf_set_on_import_javascript,
 );
 $difficult_arg_count = array(
-   getdate, min, max, mysqli_stmt_bind_param, pg_fetch_result, 
implode, strtok, strtr, sybase_fetch_object,
-   cpdf_text, muscat_setup, pdf_get_parameter, odbc_exec, 
odbc_result_all, yaz_set_option, yaz_wait,
+   getdate, min, max, implode, strtok, sybase_fetch_object,
+   cpdf_text, pdf_get_parameter, odbc_exec, odbc_result_all, yaz_wait,
+   // take account of multiple methodsynopsis:
+   crack_check, ibase_prepare, mysqli_stmt_bind_param, pg_fetch_result, 
pg_put_line, pg_query, pg_set_client_encoding, strtr, yaz_set_option,
 );
 
 // read referenced parameters from sources
@@ -152,11 +154,12 @@
foreach ($matches as $val) {
$function_name = strtolower(trim($val[1][0]));
$lineno = substr_count(substr($file, 0, $val[2][1]), \n) + 1;
+   $function_body = $val[2][0];

// types and optional
if (!in_array($function_name, $difficult_params)
-strpos($val[2][0], 'zend_parse_parameters_ex') === false // 
indicate difficulty
-preg_match('~.*zend_parse_parameters\\([^,]*,\\s*([^]*)~sS', 
$val[2][0], $matches2) // .* to catch last occurence
+strpos($function_body, 'zend_parse_parameters_ex') === false // 
indicate difficulty
+preg_match('~.*zend_parse_parameters\\([^,]*,\\s*([^]*)~sS', 
$function_body, $matches2) // .* to catch last occurence
// zend_parse_method_parameters is not yet supported
) {
$source_types[$function_name] = array($matches2[1], $filename, 
$lineno);
@@ -164,12 +167,19 @@

// arguments count
$zend_num_args = ZEND_NUM_ARGS();
-   if (preg_match('~([a-zA-Z0-9_.]+)\\s*=\\s*ZEND_NUM_ARGS()~', 
$val[2][0], $matches2)) { // int argc = ZEND_NUM_ARGS();
+   if (preg_match('~([a-zA-Z0-9_.]+)\\s*=\\s*ZEND_NUM_ARGS()~S', 
$function_body, $matches2)) { // int argc = ZEND_NUM_ARGS();
$zend_num_args = $matches2[1];
}
$zend_num_args = preg_quote($zend_num_args, ~);
-   //! should differentiate between || and 
-   if 
(preg_match_all(~(?:([0-9]+)\\s*($operators)\\s*$zend_num_args|$zend_num_args\\s*($operators)\\s*([0-9]+))(?=[^{]+\\{[^}]+WRONG_PARAM_COUNT)~S,
 $val[2][0], $matches2, PREG_SET_ORDER)) {
+   if (preg_match(~^([ 
\t]+)switch\\s*\\(\\s*$zend_num_args\\s*\\)(.*)^\\1\\}~msSU, $function_body, 
$matches2)  preg_match('~\\bdefault\\s*:.*WRONG_PARAM_COUNT~sS', $matches2[2])) {
+   $source_arg_counts[$function_name] = 
array(array_fill(0, $max_args+1, true), $filename, $lineno);
+   $source_arg_count = 
$source_arg_counts[$function_name][0];
+   $switch = $matches2[2];
+   preg_match_all('~\\bcase\\s+([0-9]+)\\s*:~S', $switch, 
$matches2);
+   foreach ($matches2[1] as $val) {
+   unset($source_arg_count[$val]);
+   }
+   } elseif 
(preg_match_all(~(?:([0-9]+)\\s*($operators)\\s*$zend_num_args|$zend_num_args\\s*($operators)\\s*([0-9]+))(?=[^{]+\\{[^}]+WRONG_PARAM_COUNT)~S,
 $function_body, $matches2, PREG_SET_ORDER)) { //! should differentiate between || and 

$source_arg_counts[$function_name] = array(array(), 
$filename, $lineno);
$source_arg_count = 
$source_arg_counts[$function_name][0];
foreach ($matches2 as $val) {
@@ -183,9 +193,11 @@
}
unset($source_arg_count[$number]);
break;
-   case =: // old version
+   /* old version
+   case =:
$source_arg_count[$number] = true;
break;
+   */

[PHP-DOC] cvs: phpdoc /en/install/macos client.xml index.xml packages.xml server.xml

2004-08-18 Thread Bagi Levente László
bagileviWed Aug 18 11:33:13 2004 EDT

  Modified files:  
/phpdoc/en/install/macosclient.xml index.xml packages.xml 
server.xml 
  Log:
  translate
  http://cvs.php.net/diff.php/phpdoc/en/install/macos/client.xml?r1=1.4r2=1.5ty=u
Index: phpdoc/en/install/macos/client.xml
diff -u phpdoc/en/install/macos/client.xml:1.4 phpdoc/en/install/macos/client.xml:1.5
--- phpdoc/en/install/macos/client.xml:1.4  Fri Jun  4 06:30:07 2004
+++ phpdoc/en/install/macos/client.xml  Wed Aug 18 11:33:13 2004
@@ -1,79 +1,83 @@
-?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+?xml version=1.0 encoding=iso-8859-2?
+!-- EN-Revision: 1.4 Maintainer: bagilevi Status: ready --
+!-- CREDITS: goba,gerzson --
  sect1 id=install.macosx.client
-  titleCompiling for MacOS X Client/title
+  titleFordítás MacOS X kliensre/title
   
   !-- TODO: verify these instructions (the wget URL below does not seem to work for 
me)
Goba - June 04. 2004. --
   
   simpara
-   The following instructions will help you install a PHP module for the Apache
-   web server included in MacOS X. This version includes support for the MySQL
-   and PostgreSQL databases. These instructions are graciously provided by
-   ulink url=url.macosx;Marc Liyanage/ulink.
+   A következõ útmutató segítségedre lesz abban, hogy a PHP-t modulként 
+   telepítsd a MacOS X-ben jelenlévõ Apache webszerverhez. Ez a verzió
+   támogatja a MySQL és a PostgreSQL adatbáziskezelõ rendszereket. 
+   Ezeket a tippeket ulink url=url.macosx;Marc Liyanage/ulink 
+   adta szívesen közre..
   /simpara
   warning
para
-Be careful when you do this, you could screw up your Apache web server!
+Légy körültekintõ az alábbiakban, mert tönkreteheted az Apache szerveredet!
/para
   /warning
   para
-   Do this to install:
+   Telepítéshez az alábbiakat kell tenni:
orderedlist
 listitem
  simpara
-  Open a terminal window.
+  Nyiss egy terminál ablakot.
  /simpara
 /listitem
 listitem
  simpara
-  Type
+  Írd be:
   userinputwget 
http://www.diax.ch/users/liyanage/software/macosx/libphp4.so.gz/userinput,
-  wait for the download to finish.
+  és várd meg, amíg letöltõdik.
  /simpara
 /listitem
 listitem
  simpara
-  Type userinputgunzip libphp4.so.gz/userinput.
+  Írd be: userinputgunzip libphp4.so.gz/userinput.
  /simpara
 /listitem
 listitem
  simpara
-  Type userinputsudo apxs -i -a -n php4 libphp4.so/userinput
+  Írd be: userinputsudo apxs -i -a -n php4 libphp4.so/userinput
  /simpara
 /listitem
 listitem
  para
-  Now type userinputsudo open -a TextEdit /etc/httpd/httpd.conf/userinput.
-  TextEdit will open with the web server configuration file. Locate these 
-  two lines towards the end of the file: (Use the Find command)
+  Most írd be, hogy: userinputsudo open -a TextEdit 
+  /etc/httpd/httpd.conf/userinput.
+  TextEdit megnyitja a webszerver konfigurációs fájlját. Keresd meg a 
+  következõ két sort a fájl vége felé (használd a Find parancsot):
   programlisting role=apache
 ![CDATA[
 #AddType application/x-httpd-php .php 
 #AddType application/x-httpd-php-source .phps
 ]]
   /programlisting
-   Remove the two hash marks (literal#/literal), then save the file and
-   quit TextEdit.
+   Töröld ki a két hashmark-ot (literal#/literal), és ezután mentsd 
+   el a fájlt, lépj ki a TextEdit-bõl.
   /para
 /listitem
 listitem
  simpara
-  Finally, type userinputsudo apachectl graceful/userinput to restart
-  the web server.
+  Végül írd be: userinputsudo apachectl graceful/userinput hogy 
+  újrainduljon a webszerver.
  /simpara
 /listitem
/orderedlist
   /para
   para
-   PHP should now be up and running. You can test it by dropping a file into 
-   your filename class=directorySites/filename folder which is called
-   filenametest.php/filename. Into that file, write this line:
+   Mostantól a PHP-nak futni kell. Ezt ellenõrizheted, ha a 
+   filename class=directorySites/filename könyvtáradba bemásolod a
+   filenametest.php/filename fájlt, amiben nincs más csak ez a sor:
literallt;?php phpinfo() ?gt;/literal.
   /para
   para
-   Now open up literal127.0.0.1/~your_username/test.php/literal in your web
-   browser. You should see a status table with information about the PHP module.
+   Most nyisd meg a literal127.0.0.1/~a_sajat_userneved/test.php/literal 
+   címen levõ oldalt a webböngészõdben. A PHP modul információs táblázatait 
+   kell látnod ezen az oldalon.
   /para
  /sect1
 
http://cvs.php.net/diff.php/phpdoc/en/install/macos/index.xml?r1=1.5r2=1.6ty=u
Index: phpdoc/en/install/macos/index.xml
diff -u phpdoc/en/install/macos/index.xml:1.5 phpdoc/en/install/macos/index.xml:1.6
--- phpdoc/en/install/macos/index.xml:1.5   Sat Jun  5 16:47:47 2004
+++ 

[PHP-DOC] cvs: phpdoc /en/reference/crack/functions crack-check.xml /en/reference/dbplus/functions dbplus-errcode.xml dbplus-rcrtexact.xml dbplus-rcrtlike.xml /en/reference/fbsql/functions fbsql-fetch-lengths.xml fbsql-field-flags.xml fbsql-field-len.xml fbsql-field-name.xml fbsql-field-seek.xml fbsql-field-table.xml fbsql-field-type.xml fbsql-result.xml fbsql-select-db.xml /en/reference/hw/functions hw-pipedocument.xml /en/reference/ibase/functions ibase-affected-rows.xml ibase-drop-db.xml ibase-prepare.xml /en/reference/image/functions imagepsbbox.xml /en/reference/mbstring/functions mb-strimwidth.xml /en/reference/msql/functions msql-fetch-field.xml /en/reference/oracle/functions ora-parse.xml /en/reference/pgsql/functions pg-close.xml pg-lo-create.xml pg-put-line.xml pg-query.xml pg-set-client-encoding.xml /en/reference/printer/functions printer-draw-bmp.xml /en/reference/strings/functions levenshtein.xml number-format.xml /en/reference/sybase/functions sybase-query.xml /en/reference/uodbc/functions odbc-fetch-into.xml

2004-08-18 Thread Jakub Vrana
vrana   Wed Aug 18 11:39:27 2004 EDT

  Modified files:  
/phpdoc/en/reference/crack/functionscrack-check.xml 
/phpdoc/en/reference/dbplus/functions   dbplus-errcode.xml 
dbplus-rcrtexact.xml 
dbplus-rcrtlike.xml 
/phpdoc/en/reference/fbsql/functionsfbsql-fetch-lengths.xml 
fbsql-field-flags.xml 
fbsql-field-len.xml 
fbsql-field-name.xml 
fbsql-field-seek.xml 
fbsql-field-table.xml 
fbsql-field-type.xml 
fbsql-result.xml 
fbsql-select-db.xml 
/phpdoc/en/reference/hw/functions   hw-pipedocument.xml 
/phpdoc/en/reference/ibase/functionsibase-affected-rows.xml 
ibase-drop-db.xml 
ibase-prepare.xml 
/phpdoc/en/reference/image/functionsimagepsbbox.xml 
/phpdoc/en/reference/mbstring/functions mb-strimwidth.xml 
/phpdoc/en/reference/msql/functions msql-fetch-field.xml 
/phpdoc/en/reference/oracle/functions   ora-parse.xml 
/phpdoc/en/reference/pgsql/functionspg-close.xml pg-lo-create.xml 
pg-put-line.xml pg-query.xml 
pg-set-client-encoding.xml 
/phpdoc/en/reference/printer/functions  printer-draw-bmp.xml 
/phpdoc/en/reference/strings/functions  levenshtein.xml 
number-format.xml 
/phpdoc/en/reference/sybase/functions   sybase-query.xml 
/phpdoc/en/reference/uodbc/functionsodbc-fetch-into.xml 
  Log:
  Fix protos from sources
  http://cvs.php.net/diff.php/phpdoc/en/reference/crack/functions/crack-check.xml?r1=1.2r2=1.3ty=u
Index: phpdoc/en/reference/crack/functions/crack-check.xml
diff -u phpdoc/en/reference/crack/functions/crack-check.xml:1.2 
phpdoc/en/reference/crack/functions/crack-check.xml:1.3
--- phpdoc/en/reference/crack/functions/crack-check.xml:1.2 Wed Apr 17 02:36:59 
2002
+++ phpdoc/en/reference/crack/functions/crack-check.xml Wed Aug 18 11:39:25 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/crack.xml, last change in rev 1.1 --
   refentry id=function.crack-check
refnamediv
@@ -10,7 +10,11 @@
 titleDescription/title
  methodsynopsis
   typebool/typemethodnamecrack_check/methodname
-  methodparam 
choice=opttyperesource/typeparameterdictionary/parameter/methodparam
+  
methodparamtyperesource/typeparameterdictionary/parameter/methodparam
+  methodparamtypestring/typeparameterpassword/parameter/methodparam
+ /methodsynopsis
+ methodsynopsis
+  typebool/typemethodnamecrack_check/methodname
   methodparamtypestring/typeparameterpassword/parameter/methodparam
  /methodsynopsis
 para 
http://cvs.php.net/diff.php/phpdoc/en/reference/dbplus/functions/dbplus-errcode.xml?r1=1.2r2=1.3ty=u
Index: phpdoc/en/reference/dbplus/functions/dbplus-errcode.xml
diff -u phpdoc/en/reference/dbplus/functions/dbplus-errcode.xml:1.2 
phpdoc/en/reference/dbplus/functions/dbplus-errcode.xml:1.3
--- phpdoc/en/reference/dbplus/functions/dbplus-errcode.xml:1.2 Wed Apr 17 02:37:23 
2002
+++ phpdoc/en/reference/dbplus/functions/dbplus-errcode.xml Wed Aug 18 11:39:25 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/dbplus.xml, last change in rev 1.1 --
   refentry id=function.dbplus-errcode
refnamediv
@@ -12,7 +12,7 @@
 titleDescription/title
 methodsynopsis
  typestring/typemethodnamedbplus_errcode/methodname
- methodparamtypeint/typeparametererrno/parameter/methodparam
+ methodparam 
choice=opttypeint/typeparametererrno/parameter/methodparam
 /methodsynopsis
 warn.experimental.func;
 para
http://cvs.php.net/diff.php/phpdoc/en/reference/dbplus/functions/dbplus-rcrtexact.xml?r1=1.4r2=1.5ty=u
Index: phpdoc/en/reference/dbplus/functions/dbplus-rcrtexact.xml
diff -u phpdoc/en/reference/dbplus/functions/dbplus-rcrtexact.xml:1.4 
phpdoc/en/reference/dbplus/functions/dbplus-rcrtexact.xml:1.5
--- phpdoc/en/reference/dbplus/functions/dbplus-rcrtexact.xml:1.4   Tue Feb 18 
13:06:37 2003
+++ phpdoc/en/reference/dbplus/functions/dbplus-rcrtexact.xml   Wed Aug 18 11:39:25 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+!-- $Revision: 1.5 $ --
 !-- splitted from 

[PHP-DOC] cvs: phpdoc /en/install/macos client.xml index.xml packages.xml server.xml

2004-08-18 Thread Bagi Levente László
bagileviWed Aug 18 11:56:40 2004 EDT

  Modified files:  
/phpdoc/en/install/macosclient.xml index.xml packages.xml 
server.xml 
  Log:
  recover mistake
  http://cvs.php.net/diff.php/phpdoc/en/install/macos/client.xml?r1=1.5r2=1.6ty=u
Index: phpdoc/en/install/macos/client.xml
diff -u phpdoc/en/install/macos/client.xml:1.5 phpdoc/en/install/macos/client.xml:1.6
--- phpdoc/en/install/macos/client.xml:1.5  Wed Aug 18 11:33:13 2004
+++ phpdoc/en/install/macos/client.xml  Wed Aug 18 11:56:40 2004
@@ -1,83 +1,79 @@
-?xml version=1.0 encoding=iso-8859-2?
-!-- EN-Revision: 1.4 Maintainer: bagilevi Status: ready --
-!-- CREDITS: goba,gerzson --
+?xml version=1.0 encoding=iso-8859-1?
+!-- $Revision: 1.6 $ --
  sect1 id=install.macosx.client
-  titleFordítás MacOS X kliensre/title
+  titleCompiling for MacOS X Client/title
   
   !-- TODO: verify these instructions (the wget URL below does not seem to work for 
me)
Goba - June 04. 2004. --
   
   simpara
-   A következõ útmutató segítségedre lesz abban, hogy a PHP-t modulként 
-   telepítsd a MacOS X-ben jelenlévõ Apache webszerverhez. Ez a verzió
-   támogatja a MySQL és a PostgreSQL adatbáziskezelõ rendszereket. 
-   Ezeket a tippeket ulink url=url.macosx;Marc Liyanage/ulink 
-   adta szívesen közre..
+   The following instructions will help you install a PHP module for the Apache
+   web server included in MacOS X. This version includes support for the MySQL
+   and PostgreSQL databases. These instructions are graciously provided by
+   ulink url=url.macosx;Marc Liyanage/ulink.
   /simpara
   warning
para
-Légy körültekintõ az alábbiakban, mert tönkreteheted az Apache szerveredet!
+Be careful when you do this, you could screw up your Apache web server!
/para
   /warning
   para
-   Telepítéshez az alábbiakat kell tenni:
+   Do this to install:
orderedlist
 listitem
  simpara
-  Nyiss egy terminál ablakot.
+  Open a terminal window.
  /simpara
 /listitem
 listitem
  simpara
-  Írd be:
+  Type
   userinputwget 
http://www.diax.ch/users/liyanage/software/macosx/libphp4.so.gz/userinput,
-  és várd meg, amíg letöltõdik.
+  wait for the download to finish.
  /simpara
 /listitem
 listitem
  simpara
-  Írd be: userinputgunzip libphp4.so.gz/userinput.
+  Type userinputgunzip libphp4.so.gz/userinput.
  /simpara
 /listitem
 listitem
  simpara
-  Írd be: userinputsudo apxs -i -a -n php4 libphp4.so/userinput
+  Type userinputsudo apxs -i -a -n php4 libphp4.so/userinput
  /simpara
 /listitem
 listitem
  para
-  Most írd be, hogy: userinputsudo open -a TextEdit 
-  /etc/httpd/httpd.conf/userinput.
-  TextEdit megnyitja a webszerver konfigurációs fájlját. Keresd meg a 
-  következõ két sort a fájl vége felé (használd a Find parancsot):
+  Now type userinputsudo open -a TextEdit /etc/httpd/httpd.conf/userinput.
+  TextEdit will open with the web server configuration file. Locate these 
+  two lines towards the end of the file: (Use the Find command)
   programlisting role=apache
 ![CDATA[
 #AddType application/x-httpd-php .php 
 #AddType application/x-httpd-php-source .phps
 ]]
   /programlisting
-   Töröld ki a két hashmark-ot (literal#/literal), és ezután mentsd 
-   el a fájlt, lépj ki a TextEdit-bõl.
+   Remove the two hash marks (literal#/literal), then save the file and
+   quit TextEdit.
   /para
 /listitem
 listitem
  simpara
-  Végül írd be: userinputsudo apachectl graceful/userinput hogy 
-  újrainduljon a webszerver.
+  Finally, type userinputsudo apachectl graceful/userinput to restart
+  the web server.
  /simpara
 /listitem
/orderedlist
   /para
   para
-   Mostantól a PHP-nak futni kell. Ezt ellenõrizheted, ha a 
-   filename class=directorySites/filename könyvtáradba bemásolod a
-   filenametest.php/filename fájlt, amiben nincs más csak ez a sor:
+   PHP should now be up and running. You can test it by dropping a file into 
+   your filename class=directorySites/filename folder which is called
+   filenametest.php/filename. Into that file, write this line:
literallt;?php phpinfo() ?gt;/literal.
   /para
   para
-   Most nyisd meg a literal127.0.0.1/~a_sajat_userneved/test.php/literal 
-   címen levõ oldalt a webböngészõdben. A PHP modul információs táblázatait 
-   kell látnod ezen az oldalon.
+   Now open up literal127.0.0.1/~your_username/test.php/literal in your web
+   browser. You should see a status table with information about the PHP module.
   /para
  /sect1
 
http://cvs.php.net/diff.php/phpdoc/en/install/macos/index.xml?r1=1.6r2=1.7ty=u
Index: phpdoc/en/install/macos/index.xml
diff -u phpdoc/en/install/macos/index.xml:1.6 phpdoc/en/install/macos/index.xml:1.7
--- phpdoc/en/install/macos/index.xml:1.6   Wed Aug 18 11:33:13 2004
+++ 

Re: [PHP-DOC] cvs: phpdoc /en/install/macos client.xml index.xml packages.xml server.xml

2004-08-18 Thread Sean Coates
Bagi Levente László wrote:
 bagilevi   Wed Aug 18 11:33:13 2004 EDT

   Modified files:
 /phpdoc/en/install/macos   client.xml index.xml packages.xml
server.xml
   Log:
   translate

SNIP
You committed to the english module. Please revert.
S


[PHP-DOC] cvs: phpdoc /en/faq html.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:12:07 2004 EDT

  Modified files:  
/phpdoc/en/faq  html.xml 
  Log:
  grammar + small structure change
  
http://cvs.php.net/diff.php/phpdoc/en/faq/html.xml?r1=1.28r2=1.29ty=u
Index: phpdoc/en/faq/html.xml
diff -u phpdoc/en/faq/html.xml:1.28 phpdoc/en/faq/html.xml:1.29
--- phpdoc/en/faq/html.xml:1.28 Tue Aug 17 09:58:57 2004
+++ phpdoc/en/faq/html.xml  Wed Aug 18 12:12:07 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.28 $ --
+!-- $Revision: 1.29 $ --
  chapter id=faq.html
   titlePHP and HTML/title
   titleabbrevPHP and HTML/titleabbrev
@@ -156,7 +156,11 @@
   like any other described within the section on retrieving 
   link linkend=language.variables.externalvariables from outside of 
   PHP/link.  For example, varname$_GET['foo_x']/varname.
-  Spaces in variable names are converted to underscores too.
+  note
+   para
+ Spaces in request variable names are converted to underscores.
+   /para
+  /note
  /para
 /answer
/qandaentry


[PHP-DOC] cvs: phpdoc /en/reference/apache/functions virtual.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:14:34 2004 EDT

  Modified files:  
/phpdoc/en/reference/apache/functions   virtual.xml 
  Log:
  grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/apache/functions/virtual.xml?r1=1.9r2=1.10ty=u
Index: phpdoc/en/reference/apache/functions/virtual.xml
diff -u phpdoc/en/reference/apache/functions/virtual.xml:1.9 
phpdoc/en/reference/apache/functions/virtual.xml:1.10
--- phpdoc/en/reference/apache/functions/virtual.xml:1.9Tue Aug 17 04:00:58 
2004
+++ phpdoc/en/reference/apache/functions/virtual.xmlWed Aug 18 12:14:34 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.9 $ --
+!-- $Revision: 1.10 $ --
 !-- splitted from ./en/functions/apache.xml, last change in rev 1.20 --
   refentry id=function.virtual
refnamediv
@@ -31,8 +31,8 @@
   since it uses the Apache API for doing sub requests. Query string can be
   passed to the included file but varname$_GET/varname is copied from
   the parent script and only varname$_SERVER['QUERY_STRING']/varname is
-  filled by the passed query string. Query string passing works only under
-  Apache 2. Requested file is not listed in Apache access log.
+  filled with the passed query string. The query string may only be passed
+  when using Apache 2. The requested file will not be listed in the Apache access 
log.
  /para
 /warning
 para


[PHP-DOC] cvs: phpdoc /en/reference/funchand/functions register-shutdown-function.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:15:20 2004 EDT

  Modified files:  
/phpdoc/en/reference/funchand/functions 
register-shutdown-function.xml 
  Log:
  grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/funchand/functions/register-shutdown-function.xml?r1=1.6r2=1.7ty=u
Index: phpdoc/en/reference/funchand/functions/register-shutdown-function.xml
diff -u phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.6 
phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.7
--- phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.6   Wed 
Aug 18 03:48:37 2004
+++ phpdoc/en/reference/funchand/functions/register-shutdown-function.xml   Wed 
Aug 18 12:15:20 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.6 $ --
+!-- $Revision: 1.7 $ --
 !-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --
   refentry id=function.register-shutdown-function
refnamediv
@@ -35,7 +35,7 @@
  buffers using functionob_get_contents/function.
 /para
 para
- As of PHP 4, it is possible to pass parameters to shutdown function by
+ As of PHP 4, it is possible to pass parameters to the shutdown function by
  passing additional parameters to
  functionregister_shutdown_function/function.
 /para


[PHP-DOC] cvs: phpdoc /en/reference/info/functions get-defined-constants.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:17:02 2004 EDT

  Modified files:  
/phpdoc/en/reference/info/functions get-defined-constants.xml 
  Log:
  grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/get-defined-constants.xml?r1=1.8r2=1.9ty=u
Index: phpdoc/en/reference/info/functions/get-defined-constants.xml
diff -u phpdoc/en/reference/info/functions/get-defined-constants.xml:1.8 
phpdoc/en/reference/info/functions/get-defined-constants.xml:1.9
--- phpdoc/en/reference/info/functions/get-defined-constants.xml:1.8Wed Aug 18 
07:35:32 2004
+++ phpdoc/en/reference/info/functions/get-defined-constants.xmlWed Aug 18 
12:17:01 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 !-- splitted from ./en/functions/info.xml, last change in rev 1.71 --
   refentry id=function.get-defined-constants
refnamediv
@@ -57,9 +57,9 @@
  /informalexample
 /para
 para
- As of PHP 5, you can pass an optional parameter
- parametercategorize/parameter causing that this function will return
- multi-dimensional array with categories in keys of the first dimension and
+ As of PHP 5, an additional parameter, parametercategorize/parameter,
+ may be passed, causing this function to return a multi-dimensional array
+ with categories in the keys of the first dimension and
  constants and their values in the second dimension.
  informalexample
   programlisting role=php
@@ -114,8 +114,8 @@
  /informalexample
  note
   para
-   Value of the parametercategorize/parameter parameter is irrelevant,
-   only presence is considered.
+   The value of the parametercategorize/parameter parameter is irrelevant,
+   only its presence is considered.
   /para
  /note
 /para


[PHP-DOC] cvs: phpdoc /en/reference/outcontrol/functions ob-start.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:17:48 2004 EDT

  Modified files:  
/phpdoc/en/reference/outcontrol/functions   ob-start.xml 
  Log:
  grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/outcontrol/functions/ob-start.xml?r1=1.15r2=1.16ty=u
Index: phpdoc/en/reference/outcontrol/functions/ob-start.xml
diff -u phpdoc/en/reference/outcontrol/functions/ob-start.xml:1.15 
phpdoc/en/reference/outcontrol/functions/ob-start.xml:1.16
--- phpdoc/en/reference/outcontrol/functions/ob-start.xml:1.15  Tue Aug 17 04:14:10 
2004
+++ phpdoc/en/reference/outcontrol/functions/ob-start.xml   Wed Aug 18 12:17:47 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.15 $ --
+!-- $Revision: 1.16 $ --
 !-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --
   refentry id=function.ob-start
refnamediv
@@ -63,8 +63,8 @@
  If the optional parameter parameterchunk_size/parameter is passed, the
  callback function is called on every first newline after
  parameterchunk_size/parameter bytes of output.
- You can bypass the parameteroutput_callback/parameter parameter by
- null; value.
+ The parameteroutput_callback/parameter parameter may be bypassed by
+ passing a null; value.
 /para
 para
  If the optional parameter parametererase/parameter is set to false;,


[PHP-DOC] cvs: phpdoc /en/reference/sqlite/functions sqlite-query.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:18:17 2004 EDT

  Modified files:  
/phpdoc/en/reference/sqlite/functions   sqlite-query.xml 
  Log:
  grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-query.xml?r1=1.8r2=1.9ty=u
Index: phpdoc/en/reference/sqlite/functions/sqlite-query.xml
diff -u phpdoc/en/reference/sqlite/functions/sqlite-query.xml:1.8 
phpdoc/en/reference/sqlite/functions/sqlite-query.xml:1.9
--- phpdoc/en/reference/sqlite/functions/sqlite-query.xml:1.8   Mon Aug 16 05:29:35 
2004
+++ phpdoc/en/reference/sqlite/functions/sqlite-query.xml   Wed Aug 18 12:18:17 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 refentry id=function.sqlite-query
  refnamediv
   refnamesqlite_query/refname
@@ -25,7 +25,7 @@
parameter).
   /para
   para
-   This function will return a result handle or false; for failure.
+   This function will return a result handle or false; on failure.
For queries that return rows, the result handle can then be used with
functions such as functionsqlite_fetch_array/function and
functionsqlite_seek/function.


[PHP-DOC] cvs: phpdoc /en/reference/math/functions bindec.xml hexdec.xml octdec.xml

2004-08-18 Thread Sean Coates
seanWed Aug 18 12:18:48 2004 EDT

  Modified files:  
/phpdoc/en/reference/math/functions bindec.xml hexdec.xml 
octdec.xml 
  Log:
  grammar
  
http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/bindec.xml?r1=1.6r2=1.7ty=u
Index: phpdoc/en/reference/math/functions/bindec.xml
diff -u phpdoc/en/reference/math/functions/bindec.xml:1.6 
phpdoc/en/reference/math/functions/bindec.xml:1.7
--- phpdoc/en/reference/math/functions/bindec.xml:1.6   Mon Aug 16 09:51:54 2004
+++ phpdoc/en/reference/math/functions/bindec.xml   Wed Aug 18 12:18:48 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.6 $ --
+!-- $Revision: 1.7 $ --
 !-- splitted from ./en/functions/math.xml, last change in rev 1.2 --
   refentry id=function.bindec
refnamediv
@@ -20,7 +20,7 @@
  functionbindec/function converts a binary number to an 
  typeinteger/type. The largest number that can be converted is 
  31 bits of 1's or 2147483647 in decimal.
- Since PHP 4.1.0, this function can convert also higher numbers and returns
+ As of PHP 4.1.0, this function can also convert larger numbers. It returns
  typefloat/type in that case.
 /para
 para
http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/hexdec.xml?r1=1.8r2=1.9ty=u
Index: phpdoc/en/reference/math/functions/hexdec.xml
diff -u phpdoc/en/reference/math/functions/hexdec.xml:1.8 
phpdoc/en/reference/math/functions/hexdec.xml:1.9
--- phpdoc/en/reference/math/functions/hexdec.xml:1.8   Mon Aug 16 09:51:54 2004
+++ phpdoc/en/reference/math/functions/hexdec.xml   Wed Aug 18 12:18:48 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 !-- splitted from ./en/functions/math.xml, last change in rev 1.16 --
   refentry id=function.hexdec
refnamediv
@@ -18,7 +18,7 @@
  functionhexdec/function converts a hexadecimal string to a
  decimal number. The largest number that can be converted is
  7fff or 2147483647 in decimal.
- Since PHP 4.1.0, this function can convert also higher numbers and returns
+ As of PHP 4.1.0, this function can also convert larger numbers. It returns
  typefloat/type in that case.
 /para
 para
http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/octdec.xml?r1=1.6r2=1.7ty=u
Index: phpdoc/en/reference/math/functions/octdec.xml
diff -u phpdoc/en/reference/math/functions/octdec.xml:1.6 
phpdoc/en/reference/math/functions/octdec.xml:1.7
--- phpdoc/en/reference/math/functions/octdec.xml:1.6   Mon Aug 16 09:51:54 2004
+++ phpdoc/en/reference/math/functions/octdec.xml   Wed Aug 18 12:18:48 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.6 $ --
+!-- $Revision: 1.7 $ --
 !-- splitted from ./en/functions/math.xml, last change in rev 1.2 --
   refentry id=function.octdec
refnamediv
@@ -17,7 +17,7 @@
  represented by the parameteroctal_string/parameter argument.
  The largest number that can be converted is 177 or 2147483647 in
  decimal.
- Since PHP 4.1.0, this function can convert also higher numbers and returns
+ As of PHP 4.1.0, this function can also convert larger numbers. It returns
  typefloat/type in that case.
 /para
 para


[PHP-DOC] #29743 [NEW]: getmxrr() doc has return type mismatch

2004-08-18 Thread scott at slerman dot net
From: scott at slerman dot net
Operating system: 
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  getmxrr() doc has return type mismatch

Description:

int getmxrr ( string hostname, array mxhosts [, array weight])

Searches DNS for MX records corresponding to hostname. Returns TRUE if any
records are found; returns FALSE if no records were found or if an error
occurred.

The header says the function returns an int, but the description (and my
test on 5.0.1/Linux) says that the function always returns a boolean.


-- 
Edit bug report at http://bugs.php.net/?id=29743edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29743r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29743r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=29743r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=29743r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29743r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=29743r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=29743r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=29743r=support
Expected behavior:  http://bugs.php.net/fix.php?id=29743r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=29743r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=29743r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=29743r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29743r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=29743r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=29743r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=29743r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29743r=float


[PHP-DOC] cvs: phpdoc /en language-defs.ent

2004-08-18 Thread Philip Olson
philip  Wed Aug 18 14:55:39 2004 EDT

  Modified files:  
/phpdoc/en  language-defs.ent 
  Log:
  New entities for changelog/parameter listing.
  
  
http://cvs.php.net/diff.php/phpdoc/en/language-defs.ent?r1=1.19r2=1.20ty=u
Index: phpdoc/en/language-defs.ent
diff -u phpdoc/en/language-defs.ent:1.19 phpdoc/en/language-defs.ent:1.20
--- phpdoc/en/language-defs.ent:1.19Tue Aug  3 07:52:57 2004
+++ phpdoc/en/language-defs.ent Wed Aug 18 14:55:39 2004
@@ -1,4 +1,4 @@
-!-- $Revision: 1.19 $ --
+!-- $Revision: 1.20 $ --
 
 !-- Part titles used mostly in manual.xml itself --
 !ENTITY PHPManual PHP Manual
@@ -21,6 +21,8 @@
 !ENTITY ReservedConstants Predefined Constants
 !ENTITY MissingStuff  Missing Stuff
 !ENTITY AndSeveralOthers  And several others
+!ENTITY Version   Version
+!ENTITY Description   Description
 
 !-- These are used in reference/$extname/reference.xml and other
 supplemental files to mark section titles --
@@ -38,3 +40,5 @@
 !ENTITY reftitle.returnvalues 'titleReturn values/title'
 !ENTITY reftitle.examples 'titleExamples/title'
 !ENTITY reftitle.seealso  'titleSee Also/title'
+!ENTITY reftitle.changelog'titleChangeLog/title'
+!ENTITY reftitle.parameters   'titleParameter List/title'
\ No newline at end of file


[PHP-DOC] cvs: phpdoc /en/reference/exif/functions exif-imagetype.xml exif-read-data.xml exif-tagname.xml exif-thumbnail.xml read-exif-data.xml

2004-08-18 Thread Philip Olson
philip  Wed Aug 18 15:15:45 2004 EDT

  Modified files:  
/phpdoc/en/reference/exif/functions exif-imagetype.xml 
exif-read-data.xml 
exif-tagname.xml 
exif-thumbnail.xml 
read-exif-data.xml 
  Log:
  Rewrote all exif functions to follow the new style and coding standards.  Because 
this will be
  used as a model even WS changes exist.  Some content changes as well.  
  
  http://cvs.php.net/diff.php/phpdoc/en/reference/exif/functions/exif-imagetype.xml?r1=1.1r2=1.2ty=u
Index: phpdoc/en/reference/exif/functions/exif-imagetype.xml
diff -u phpdoc/en/reference/exif/functions/exif-imagetype.xml:1.1 
phpdoc/en/reference/exif/functions/exif-imagetype.xml:1.2
--- phpdoc/en/reference/exif/functions/exif-imagetype.xml:1.1   Sun Jul 25 19:08:33 
2004
+++ phpdoc/en/reference/exif/functions/exif-imagetype.xml   Wed Aug 18 15:15:45 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.1 $ --
+!-- $Revision: 1.2 $ --
 !-- splitted from ./en/functions/image.xml, last change in rev 1.81 --
  refentry id=function.exif-imagetype
   refnamediv
@@ -10,31 +10,76 @@
reftitle.description;
methodsynopsis
 typeint/typemethodnameexif_imagetype/methodname
- methodparamtypestring/typeparameterfilename/parameter/methodparam
+methodparamtypestring/typeparameterfilename/parameter/methodparam
/methodsynopsis
para
 functionexif_imagetype/function reads the first bytes of an image and
 checks its signature.
/para
-   note
-para
- Support for acronymJPC/acronym, acronymJP2/acronym,
- acronymJPX/acronym, acronymJB2/acronym,
- acronymXBM/acronym, and acronymWBMP/acronym became available in
- PHP 4.3.2.  Support for acronymSWC/acronym as of PHP 4.3.0.
-/para
-   /note
-   para
-This function can be used to avoid calls to other exif functions with
-unsupported file types or in conjunction with
-varname$_SERVER['HTTP_ACCEPT']/varname to check whether or 
-not the viewer is able to see a specific image in the browser.
+   para
+functionexif_imagetype/function can be used to avoid calls to other 
+link linkend=ref.exifexif/link functions with unsupported file types 
+or in conjunction with varname$_SERVER['HTTP_ACCEPT']/varname to check 
+whether or not the viewer is able to see a specific image in the browser.
+   /para
+  /refsect1
+  refsect1
+   reftitle.parameters;
+   para
+variablelist
+ varlistentry
+  termparameterfilename/parameter/term
+  listitem
+   simpara
+The image being checked.
+   /simpara
+  /listitem
+ /varlistentry
+/variablelist
+   /para
+  /refsect1
+  refsect1
+   reftitle.returnvalues;
+   para
+When a correct signature is found, the appropriate constant value will be
+returned otherwise the return value is false;. The return value is the
+same value that functiongetimagesize/function returns in index 2 but
+functionexif_imagetype/function is much faster.
+   /para
+  /refsect1
+  refsect1
+   reftitle.changelog;
+   para
+informaltable
+ tgroup cols=2
+  thead
+   row
+entryVersion;/entry
+entryDescription;/entry
+   /row
+  /thead
+  tbody
+   row
+entry4.3.2/entry
+entry
+ Support for acronymJPC/acronym, acronymJP2/acronym,
+ acronymJPX/acronym, acronymJB2/acronym,
+ acronymXBM/acronym, and acronymWBMP/acronym
+/entry
+   /row
+   row
+entry4.3.0/entry
+entrySupport for acronymSWC/acronym/entry
+   /row
+  /tbody
+ /tgroup
+/informaltable
/para
   /refsect1
   refsect1
reftitle.constants;
para
-The following constants are defined and represent possible 
+The following constants are defined, and represent possible 
 functionexif_imagetype/function return values:
 table
 titleImagetype Constants/title
@@ -118,15 +163,6 @@
/para
   /refsect1
   refsect1
-   reftitle.returnvalues;
-   para
-When a correct signature is found the appropriate constant value will be
-returned otherwise the return value is false;. The return value is the
-same value that functiongetimagesize/function returns in index 2 but
-this function is much faster.
-   /para
-  /refsect1
-  refsect1
reftitle.examples;
para
 example
@@ -134,8 +170,8 @@
  programlisting role=php
 ![CDATA[
 ?php
-if (exif_imagetype(image.gif) != IMAGETYPE_GIF) {
-echo The picture is not a gif;
+if (exif_imagetype('image.gif') != IMAGETYPE_GIF) {
+echo 'The picture is not a gif';
 }
 ?
 ]]  
@@ -170,4 +206,4 @@
 vim600: syn=xml fen fdm=syntax fdl=2 si
 vim: et tw=78 syn=sgml
 vi: ts=1 sw=1
---
+--
\ No newline at end of file

[PHP-DOC] cvs: phpdoc /en/reference/network/functions getmxrr.xml

2004-08-18 Thread Philip Olson
philip  Wed Aug 18 15:32:57 2004 EDT

  Modified files:  
/phpdoc/en/reference/network/functions  getmxrr.xml 
  Log:
  Returns bool not int, closes bug #29743
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/getmxrr.xml?r1=1.9r2=1.10ty=u
Index: phpdoc/en/reference/network/functions/getmxrr.xml
diff -u phpdoc/en/reference/network/functions/getmxrr.xml:1.9 
phpdoc/en/reference/network/functions/getmxrr.xml:1.10
--- phpdoc/en/reference/network/functions/getmxrr.xml:1.9   Tue Aug  3 11:51:10 
2004
+++ phpdoc/en/reference/network/functions/getmxrr.xml   Wed Aug 18 15:32:57 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.9 $ --
+!-- $Revision: 1.10 $ --
 !-- splitted from ./en/functions/network.xml, last change in rev 1.2 --
   refentry id=function.getmxrr
refnamediv
@@ -11,7 +11,7 @@
refsect1
 titleDescription/title
  methodsynopsis
-  typeint/typemethodnamegetmxrr/methodname
+  typebool/typemethodnamegetmxrr/methodname
   methodparamtypestring/typeparameterhostname/parameter/methodparam
   methodparamtypearray/typeparameteramp;mxhosts/parameter/methodparam
   methodparam 
choice=opttypearray/typeparameteramp;weight/parameter/methodparam


[PHP-DOC] #29743 [Opn-Csd]: getmxrr() doc has return type mismatch

2004-08-18 Thread philip
 ID:  29743
 Updated by:  [EMAIL PROTECTED]
 Reported By: scott at slerman dot net
-Status:  Open
+Status:  Closed
 Bug Type:Documentation problem
 PHP Version: Irrelevant
 New Comment:

Thank you for the report.  This bug is now fixed in CVS and will show
up when the manual is next built.  Here's the diff:

http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/getmxrr.xml?r1=1.9r2=1.10


Previous Comments:


[2004-08-18 20:20:45] scott at slerman dot net

Description:

int getmxrr ( string hostname, array mxhosts [, array weight])

Searches DNS for MX records corresponding to hostname. Returns TRUE if
any records are found; returns FALSE if no records were found or if an
error occurred.

The header says the function returns an int, but the description (and
my test on 5.0.1/Linux) says that the function always returns a
boolean.






-- 
Edit this bug report at http://bugs.php.net/?id=29743edit=1


Re: [PHP-DOC] Proposal: CHANGELOG

2004-08-18 Thread Gabor Hojtsy
We may need a livedocs person to tackle this as the structure is already
in place.  Using the same example we have the following in the 
methodsynopsis (split from one line to fit in this email):

 methodparam choice=opt
  typeint/typeparameter role=referencewidth/parameter
 /methodparam  
I added a patch to do this.
  http://www.powertrip.co.za/livedocs/
Please notice Ilia at least about the existance of this livedocs patch 
queue :) [cc-ed]

Goba


[PHP-DOC] cvs: livedocs / style_mapping.php

2004-08-18 Thread Ilia Alshanetsky
iliaa   Wed Aug 18 16:24:20 2004 EDT

  Modified files:  
/livedocs   style_mapping.php 
  Log:
  Added patch to allow handling of params passed by reference properly.
  
  Based on patch by: Curt Zirzow
  
  
http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.20r2=1.21ty=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.20 livedocs/style_mapping.php:1.21
--- livedocs/style_mapping.php:1.20 Sat Aug 14 17:34:05 2004
+++ livedocs/style_mapping.php  Wed Aug 18 16:24:20 2004
@@ -18,7 +18,7 @@
 // | Helper functions for formatting elements |
 // +--+
 //
-// $Id: style_mapping.php,v 1.20 2004/08/14 21:34:05 iliaa Exp $
+// $Id: style_mapping.php,v 1.21 2004/08/18 20:24:20 iliaa Exp $
 
 // almost XPATH.. ;-)
 $map = array(
@@ -398,17 +398,21 @@
} else {
$name = '';
}
-   switch ($role) {
-   case 'c':
-   break;
-   default:
-   if ($name  $name{0} == '') {
-   $name = '$' . substr($name, 1);
-   } elseif(trim($name) != '') {
-   $name = '$' . $name;
+
+   if ($role != 'c'  $name) {
+   if ($name{0} == '') {
+   $name{0} = '$';
+   $name = '' . $name;
+   } else if (trim($name)) {
+   if (isset($k-children[1]-attributes['role'])  
+   $k-children[1]-attributes['role'] == 
'reference') {
+   $name = '$' . $name;
} else {
-   $name = '';
+   $name = '$' . $name;
}
+   } else {
+   $name = '';
+   }
}
 
$p .= ' span class=varname' . $name . '/span/span';


Re: [PHP-DOC] Proposal: CHANGELOG

2004-08-18 Thread Ilia Alshanetsky
On August 18, 2004 03:52 pm, Gabor Hojtsy wrote:
 We may need a livedocs person to tackle this as the structure is already
 in place.  Using the same example we have the following in the
 methodsynopsis (split from one line to fit in this email):
 
   methodparam choice=opt
typeint/typeparameter role=referencewidth/parameter
   /methodparam
 
  I added a patch to do this.
 
http://www.powertrip.co.za/livedocs/

 Please notice Ilia at least about the existance of this livedocs patch
 queue :) [cc-ed]

 Goba

The patch has been applied with some revisions.

Ilia


[PHP-DOC] #28991 [Ana]: ini setting changes aren't being noted

2004-08-18 Thread philip
 ID:   28991
 Updated by:   [EMAIL PROTECTED]
-Summary:  Contradiction in DOCS
 Reported By:  jordi at jcanals dot net
 Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: Irrelevant
 PHP Version:  4.3.7
 New Comment:

The ini table generator should check for differences in PHP 4 and PHP 5
sources.  And ideally it would check an older version of PHP 4 as well,
maybe 4.3.0... and note all changes.

Regarding this bug, one of these days all ini tables will be generated
by the one script (which only generates the ini_set() one currently). 
A few open bug reports exist on this.


Previous Comments:


[2004-07-02 13:22:29] [EMAIL PROTECTED]

session.use_trans_sid is PHP_INI_DIR for PHP 4 and PHP_INI_ALL for PHP
5.



[2004-07-02 13:14:04] jordi at jcanals dot net

Description:

About the parameter session.use_trans_sid

In /manual/en/ref.session.php says that is only setable in
PHP_INI_SYSTEM | PHP_INI_PERDIR

While in /manual/en/function.ini-set.php sqys it is setable in
PHP_INI_ALL

I think the first one is correct, and the second one is wrong I've
tried it on my site, and setting it with ini_set seems not to work.

Regards,
Jordi.






-- 
Edit this bug report at http://bugs.php.net/?id=28991edit=1


[PHP-DOC] building a new extended CHM

2004-08-18 Thread Gabor Hojtsy
Hi guys,
Last time I added the proper instructions to the extended CHM building 
README, I have seen several people making additions and corrections to 
it. I was half way done with the building (around two and a half hours 
on an old Windows box), but I had no time to resume it yet (I am far 
from having direct access to that machine). This means that a new build 
is not on the horizon if you wait for me to do it. Now I hope the README 
is actual and someone else can volunteer to build a new extended CHM.

If there are any problems with the building, I will be around till 
sunday night, but then I will go on a four day camp, so I will only be 
back on the next friday if there are more questions.

While someone is on building this edition, please look into:
  http://bugs.php.net/bug.php?id=25363 and
  http://bugs.php.net/bug.php?id=26311
These are trivial bugs to fix hopefully :)
BTW, after you are ready, post a link to systems, so they can get and 
push the new file to php.net, so it will get distributed around the globe.

Goba


[PHP-DOC] cvs: phpdoc /en/reference/xattr reference.xml

2004-08-18 Thread Marcin Gibula
mg  Wed Aug 18 16:41:12 2004 EDT

  Modified files:  
/phpdoc/en/reference/xattr  reference.xml 
  Log:
  Add note about supported filesystems.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/reference.xml?r1=1.1r2=1.2ty=u
Index: phpdoc/en/reference/xattr/reference.xml
diff -u phpdoc/en/reference/xattr/reference.xml:1.1 
phpdoc/en/reference/xattr/reference.xml:1.2
--- phpdoc/en/reference/xattr/reference.xml:1.1 Sat Aug 14 19:39:49 2004
+++ phpdoc/en/reference/xattr/reference.xml Wed Aug 18 16:41:11 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.1 $ --
+!-- $Revision: 1.2 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
  reference id=ref.xattr
   titlexattr Functions/title
@@ -18,6 +18,11 @@
 para
  To use xattr, you will need libattr installed, available
  on the Linux XFS homepage ulink url=url.xattr;url.xattr;/ulink.
+/para
+para
+ Note that these functions work only on filesystems that support extended 
+ attributes (on Linux 2.6: ext2, ext3, reiserfs, jfs and xfs) and have them 
+ enabled at mount time. Ask your system administrator if in doubts.
 /para
/section
 


[PHP-DOC] categorized reference (a livedocs solution)

2004-08-18 Thread Gabor Hojtsy
Hi,
As far as I see, we can only push the categorized reference sections 
(phpdoc/RFC/manual.xml.in) forward, if we do handle the matter in 
livedocs. Since there are no people who would like to volunteer to 
implement the enhanced TOC stuff in DSSSL (online and downloadable 
versions) and XSLT (extended CHM) I know of, we should keep the current 
manual.xml.in file for these versions, and move the RFC/manual.xml.in 
file to something like phpdoc/php-manual.xml.in (or some other shiny 
name, which is future compatible :) This new file would be used by 
livedocs, and the old file would be used by the DSSSL and XSLT builds. 
Both files would need to be updated, when new extension docs, etc. are 
added (until DSSSL and XSLT rendering stuff gets completely abandoned).

If this is fine, then the tagging should be decided on. Seems like we 
need to modify docbook anyway we choose, since there is no option we can 
choose to not modify docbook and introduce some section levels there. 
Hartmut's proposal does not fit the multilevel sections proposed in the 
RFC, this is why I suggested using section tags. This might however 
have some meaning in livedocs, so since we need to modify docbook 
anyway, we can identically choose to introduce a new tag, like 
refgroup or something like this. That should be integrated to the 
livedocs TOC generator process then, and the output should be adjusted 
as such. Having a new tag would also help people who incidentally 
volunteer to fix the DSSSL and/or XSLT sheets to support this grouping, 
since they wont need to be afraid of existing code matcing the section 
tag. Then we would not overload that tag.

If this path is choosen, accepted and implemented, the refgroup section 
titles should be made entities, the RFC manual.xml.in need to be moved, 
renamed, updated to contain all the current manual.xml.in stuff, 
livedocs need to get updated, and everyone needs to go and party!

Goba


[PHP-DOC] cvs: livedocs / mk_notes.php

2004-08-18 Thread Ilia Alshanetsky
iliaa   Wed Aug 18 16:56:57 2004 EDT

  Modified files:  
/livedocs   mk_notes.php 
  Log:
  Cleanup  Optimizations.
  
  
http://cvs.php.net/diff.php/livedocs/mk_notes.php?r1=1.3r2=1.4ty=u
Index: livedocs/mk_notes.php
diff -u livedocs/mk_notes.php:1.3 livedocs/mk_notes.php:1.4
--- livedocs/mk_notes.php:1.3   Sat Aug 14 17:34:05 2004
+++ livedocs/mk_notes.php   Wed Aug 18 16:56:57 2004
@@ -19,7 +19,7 @@
 // | livedocs.|
 // +--+
 //
-// $Id: mk_notes.php,v 1.3 2004/08/14 21:34:05 iliaa Exp $
+// $Id: mk_notes.php,v 1.4 2004/08/18 20:56:57 iliaa Exp $
 
 $create = SQL
 BEGIN;
@@ -33,13 +33,13 @@
 );
 CREATE INDEX notes_sect_idx on notes(sect);
 SQL;
-
 $dbname = $argv[1] . '/livedoc-notes.sqlite';
 $tmpdir = $argv[2];
 $mirror = $argv[3];
 
-if (file_exists($dbname))
+if (file_exists($dbname)) {
unlink($dbname);
+}
 
 $DB = sqlite_open($dbname);
 sqlite_query($DB, 'PRAGMA default_synchronous=OFF');
@@ -48,37 +48,32 @@
 sqlite_query($DB, $create);
 
 $n_notes = 0;
-$n_data = 0;
+$buffer = '';
 
 $name = tempnam($tmpdir, 'notes');
 copy('http://'.$mirror.'.php.net/backend/notes/all.bz2', $name);
 $fp = fopen(compress.bzip2://.$name, 'r');
 
-do {
-   $line = fgets($fp);
-   $n_data += strlen($line);
-   if (!strlen($line))
-   break;
-   if (!strstr($line, '|')) {
-   echo LINE: $line\n\n;
+while (($line = fgetcsv($fp, 10, '|'))) {
+   if (!isset($line[5]) || isset($line[6])) {
+   echo LINE: .implode('|', $line).\n\n;
continue;
}
-
-   list ($id, $sect, $rate, $ts, $user, $note) = explode('|', $line);
++$n_notes;
 
-   $note = sqlite_escape_string(base64_decode($note));
-   $user = sqlite_escape_string($user);
-
-   sqlite_query($DB, INSERT INTO notes values ($id, '$sect', $rate, $ts, 
'$user', '$note'););
-
-} while (true);
+   if ($n_notes % 1000) {
+   $buffer .= INSERT INTO notes values (.$line[0]., '.$line[1].', 
.$line[2]., .$line[3]., 
+   '.sqlite_escape_string($line[4]).', 
'.sqlite_escape_string(base64_decode($line[5])).');;
+   } else {
+   sqlite_query($DB, $buffer);
+   $buffer = '';
+   }
+}
 
-printf(\rDone: %d notes %d bytes\n, $n_notes, $n_data);
+printf(\rDone: %d notes %d bytes\n, $n_notes, ftell($fp));
 
-sqlite_query($DB, 'COMMIT;');
+sqlite_query($DB, 'COMMIT');
 
 fclose($fp);
 unlink($name);
-
 ?


[PHP-DOC] cvs: phpdoc /en/reference/tcpwrap/functions tcpwrap-check.xml

2004-08-18 Thread Marcin Gibula
mg  Wed Aug 18 17:00:46 2004 EDT

  Modified files:  
/phpdoc/en/reference/tcpwrap/functions  tcpwrap-check.xml 
  Log:
  Add example.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/tcpwrap/functions/tcpwrap-check.xml?r1=1.1r2=1.2ty=u
Index: phpdoc/en/reference/tcpwrap/functions/tcpwrap-check.xml
diff -u phpdoc/en/reference/tcpwrap/functions/tcpwrap-check.xml:1.1 
phpdoc/en/reference/tcpwrap/functions/tcpwrap-check.xml:1.2
--- phpdoc/en/reference/tcpwrap/functions/tcpwrap-check.xml:1.1 Mon Feb  9 07:00:11 
2004
+++ phpdoc/en/reference/tcpwrap/functions/tcpwrap-check.xml Wed Aug 18 17:00:46 
2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.1 $ --
+!-- $Revision: 1.2 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
   refentry id=function.tcpwrap-check
refnamediv
@@ -37,6 +37,32 @@
 para
  This function returns true; if access should be granted, false; otherwise.
 /para
+example
+ titlefunctiontcpwrap_check/function example/title
+ para
+  If your /etc/hosts.deny file contains:
+ /para
+ screen
+![CDATA[
+php: 127.0.0.1
+]]
+ /screen
+ para
+  And your code looks like:
+ /para
+ programlisting role=php
+![CDATA[
+?php
+if (!tcpwrap_check('php', $_SERVER['REMOTE_ADDR'])) {
+die('You are not welcome here');
+}
+?
+]]
+ /programlisting
+ para
+  Then above code will deny all connections from localhost.
+ /para
+/example
/refsect1
   /refentry
 


[PHP-DOC] cvs: phpdoc /en/reference/xattr/functions xattr-set.xml

2004-08-18 Thread Marcin Gibula
mg  Wed Aug 18 17:11:52 2004 EDT

  Modified files:  
/phpdoc/en/reference/xattr/functionsxattr-set.xml 
  Log:
  Add example.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/functions/xattr-set.xml?r1=1.1r2=1.2ty=u
Index: phpdoc/en/reference/xattr/functions/xattr-set.xml
diff -u phpdoc/en/reference/xattr/functions/xattr-set.xml:1.1 
phpdoc/en/reference/xattr/functions/xattr-set.xml:1.2
--- phpdoc/en/reference/xattr/functions/xattr-set.xml:1.1   Sat Aug 14 19:39:49 
2004
+++ phpdoc/en/reference/xattr/functions/xattr-set.xml   Wed Aug 18 17:11:52 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.1 $ --
+!-- $Revision: 1.2 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
   refentry id=function.xattr-set
refnamediv
@@ -62,6 +62,26 @@
  See also functionxattr_get/function, functionxattr_remove/function, 
  functionxattr_list/function.
 /para
+example
+ titlefunctionxattr_set/function example/title
+ para
+  The following code sets extended attributes on .wav file.
+ /para
+ programlisting role=php
+![CDATA[
+?php
+$file = 'my_favourite_song.wav;
+xattr_set($file, 'Artist', 'Someone');
+xattr_set($file, 'My ranking', 'Good');
+xattr_set($file, 'Listen count', '34');
+
+/* ... other code ... */
+
+printf(You've played this song %d times, xattr_get($file, 'Listen count')); 
+?
+]]
+ /programlisting
+/example
/refsect1
   /refentry
 


[PHP-DOC] cvs: phpdoc /en/reference/xattr/functions xattr-set.xml

2004-08-18 Thread Marcin Gibula
mg  Wed Aug 18 17:14:14 2004 EDT

  Modified files:  
/phpdoc/en/reference/xattr/functionsxattr-set.xml 
  Log:
  Whoops, see also should be after example. 
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/functions/xattr-set.xml?r1=1.2r2=1.3ty=u
Index: phpdoc/en/reference/xattr/functions/xattr-set.xml
diff -u phpdoc/en/reference/xattr/functions/xattr-set.xml:1.2 
phpdoc/en/reference/xattr/functions/xattr-set.xml:1.3
--- phpdoc/en/reference/xattr/functions/xattr-set.xml:1.2   Wed Aug 18 17:11:52 
2004
+++ phpdoc/en/reference/xattr/functions/xattr-set.xml   Wed Aug 18 17:14:14 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
   refentry id=function.xattr-set
refnamediv
@@ -58,10 +58,6 @@
 para
  return.success;
 /para
-para
- See also functionxattr_get/function, functionxattr_remove/function, 
- functionxattr_list/function.
-/para
 example
  titlefunctionxattr_set/function example/title
  para
@@ -82,6 +78,10 @@
 ]]
  /programlisting
 /example
+para
+ See also functionxattr_get/function, functionxattr_remove/function, 
+ functionxattr_list/function.
+/para
/refsect1
   /refentry
 


[PHP-DOC] cvs: phpdoc /entities global.ent

2004-08-18 Thread Noel Forbes
nforbes Wed Aug 18 17:16:42 2004 EDT

  Modified files:  
/phpdoc/entitiesglobal.ent 
  Log:
  Edited url.xattr to be the home page for Linux XFS, rather than the FTP download 
location.
  
  
http://cvs.php.net/diff.php/phpdoc/entities/global.ent?r1=1.194r2=1.195ty=u
Index: phpdoc/entities/global.ent
diff -u phpdoc/entities/global.ent:1.194 phpdoc/entities/global.ent:1.195
--- phpdoc/entities/global.ent:1.194Sat Aug 14 19:40:38 2004
+++ phpdoc/entities/global.ent  Wed Aug 18 17:16:42 2004
@@ -1,6 +1,6 @@
 !-- -*- SGML -*-
 
- $Id: global.ent,v 1.194 2004/08/14 23:40:38 mg Exp $
+ $Id: global.ent,v 1.195 2004/08/18 21:16:42 nforbes Exp $
 
  Contains global macros for all the XML documents.
 
@@ -311,7 +311,7 @@
 !ENTITY url.winrar http://www.rarlab.com/;
 !ENTITY url.winzip http://www.winzip.com/;
 !ENTITY url.wddx http://www.openwddx.org/;
-!ENTITY url.xattr ftp://oss.sgi.com/projects/xfs/download;
+!ENTITY url.xattr http://oss.sgi.com/projects/xfs/;
 !ENTITY url.xchm http://xchm.sourceforge.net/;
 !ENTITY url.xdebug http://www.xdebug.org/;
 !ENTITY url.xdiff http://www.xmailserver.org/xdiff-lib.html;


[PHP-DOC] cvs: phpdoc /en/reference/xattr/functions xattr-get.xml xattr-list.xml xattr-remove.xml

2004-08-18 Thread Marcin Gibula
mg  Wed Aug 18 17:24:33 2004 EDT

  Modified files:  
/phpdoc/en/reference/xattr/functionsxattr-get.xml xattr-list.xml 
xattr-remove.xml 
  Log:
  Add examples.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/functions/xattr-get.xml?r1=1.1r2=1.2ty=u
Index: phpdoc/en/reference/xattr/functions/xattr-get.xml
diff -u phpdoc/en/reference/xattr/functions/xattr-get.xml:1.1 
phpdoc/en/reference/xattr/functions/xattr-get.xml:1.2
--- phpdoc/en/reference/xattr/functions/xattr-get.xml:1.1   Sat Aug 14 19:39:49 
2004
+++ phpdoc/en/reference/xattr/functions/xattr-get.xml   Wed Aug 18 17:24:33 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.1 $ --
+!-- $Revision: 1.2 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
   refentry id=function.xattr-get
refnamediv
@@ -46,6 +46,23 @@
 para
  Returns typestring/type with value or false; if attribute doesn't exist. 
 /para
+example
+ titlefunctionxattr_get/function example/title
+ para
+  The following code checks if system administrator has signed the file.
+ /para
+ programlisting role=php
+![CDATA[
+?php
+$file = '/usr/local/sbin/some_binary;
+$signature = xattr_get($file, 'Root signature', XATTR_ROOT);
+
+/* ... check if $signature is valid ... */
+
+?
+]]
+ /programlisting
+/example
 para
  See also functionxattr_set/function, functionxattr_remove/function, 
  functionxattr_list/function.
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/functions/xattr-list.xml?r1=1.2r2=1.3ty=u
Index: phpdoc/en/reference/xattr/functions/xattr-list.xml
diff -u phpdoc/en/reference/xattr/functions/xattr-list.xml:1.2 
phpdoc/en/reference/xattr/functions/xattr-list.xml:1.3
--- phpdoc/en/reference/xattr/functions/xattr-list.xml:1.2  Sat Aug 14 19:46:10 
2004
+++ phpdoc/en/reference/xattr/functions/xattr-list.xml  Wed Aug 18 17:24:33 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
   refentry id=function.xattr-list
refnamediv
@@ -45,6 +45,32 @@
 para
  This function returns typearray/type with names of extended attributes. 
 /para
+example
+ titlefunctionxattr_list/function example/title
+ para
+  The following code prints names of all extended attributes of file.
+ /para
+ programlisting role=php
+![CDATA[
+?php
+$file = 'some_file;
+$root_attributes = xattr_list($file, XATTR_ROOT);
+$user_attributes = xattr_list($file);
+
+echo Root attributes: \n;
+foreach ($root_attributes as $attr_name) {
+printf(%s\n, $attr_name);
+}
+
+echo \n User attributes: \n;
+foreach ($attributes as $attr_name) {
+printf(%s\n, $attr_name);
+}
+
+?
+]]
+ /programlisting
+/example
 para
  See also functionxattr_get/function, functionxattr_set/function, 
  functionxattr_remove/function.
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/functions/xattr-remove.xml?r1=1.1r2=1.2ty=u
Index: phpdoc/en/reference/xattr/functions/xattr-remove.xml
diff -u phpdoc/en/reference/xattr/functions/xattr-remove.xml:1.1 
phpdoc/en/reference/xattr/functions/xattr-remove.xml:1.2
--- phpdoc/en/reference/xattr/functions/xattr-remove.xml:1.1Sat Aug 14 19:39:49 
2004
+++ phpdoc/en/reference/xattr/functions/xattr-remove.xmlWed Aug 18 17:24:33 
2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.1 $ --
+!-- $Revision: 1.2 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
   refentry id=function.xattr-remove
refnamediv
@@ -46,6 +46,24 @@
 para
  return.success;
 /para
+example
+ titlefunctionxattr_remove/function example/title
+ para
+  The following code removes all extended attributes of file.
+ /para
+ programlisting role=php
+![CDATA[
+?php
+$file = 'some_file;
+$attributes = xattr_list($file);
+
+foreach ($attributes as $attr_name) {
+xattr_remove($file, $attr_name);
+}
+?
+]]
+ /programlisting
+/example
 para
  See also functionxattr_get/function, functionxattr_set/function, 
  functionxattr_list/function.


[PHP-DOC] German files in English downloadable manual

2004-08-18 Thread Jakub Vrana
Hello!

There are some German files in English downloadable manual. It's not a
big deal as they are not linked but it should be avoided. The reason
is that they use underscores instead of dashes in IDs.

function.ircg-channel_mode.html
function.shmop_close.html
function.shmop_delete.html
function.shmop_open.html
function.shmop_read.html
function.shmop_write.html

Jakub Vrana


[PHP-DOC] cvs: phpdoc /en/reference/xattr reference.xml

2004-08-18 Thread Noel Forbes
nforbes Wed Aug 18 17:58:24 2004 EDT

  Modified files:  
/phpdoc/en/reference/xattr  reference.xml 
  Log:
  Made grammatical fixes and moved note into a note; indented a line.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xattr/reference.xml?r1=1.2r2=1.3ty=u
Index: phpdoc/en/reference/xattr/reference.xml
diff -u phpdoc/en/reference/xattr/reference.xml:1.2 
phpdoc/en/reference/xattr/reference.xml:1.3
--- phpdoc/en/reference/xattr/reference.xml:1.2 Wed Aug 18 16:41:11 2004
+++ phpdoc/en/reference/xattr/reference.xml Wed Aug 18 17:58:24 2004
@@ -1,5 +1,5 @@
 ?xml version='1.0' encoding='iso-8859-1'?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --
  reference id=ref.xattr
   titlexattr Functions/title
@@ -9,28 +9,31 @@
section id=xattr.intro
reftitle.intro;
 para
- xattr extension allows to manipulate extended attributes on filesystems that 
support them.
+ The xattr extension allows for the manipulation of extended attributes on a 
filesystem.
 /para
/section
 
section id=xattr.requirements
 reftitle.required;
 para
- To use xattr, you will need libattr installed, available
- on the Linux XFS homepage ulink url=url.xattr;url.xattr;/ulink.
-/para
-para
- Note that these functions work only on filesystems that support extended 
- attributes (on Linux 2.6: ext2, ext3, reiserfs, jfs and xfs) and have them 
- enabled at mount time. Ask your system administrator if in doubts.
+ To use xattr, you will need libattr installed. It is available
+ at ulink url=url.xattr;url.xattr;/ulink.
 /para
+note
+ para
+  These functions only work on filesystems that support extended 
+  attributes, and have them enabled at mount time. Some common
+  filesystems that support extended attributes are ext2, ext3,
+  reiserfs, jfs, and xfs.
+ /para
+/note
/section
 
reference.xattr.configure;
reference.xattr.constants;
 
   /partintro
- reference.xattr.functions;
+  reference.xattr.functions;
  /reference
 
 !-- Keep this comment at the end of the file


[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in missing-entities.php.in

2004-08-18 Thread Philip Olson
philip  Wed Aug 18 18:00:49 2004 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in file-entities.php.in 
  Log:
  Improved debugging output for missing ids/entities, and mentioned missing Zend is 
normal.
  
  
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.12r2=1.13ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.12 
phpdoc/scripts/missing-entities.php.in:1.13
--- phpdoc/scripts/missing-entities.php.in:1.12 Wed Dec 31 20:08:46 2003
+++ phpdoc/scripts/missing-entities.php.in  Wed Aug 18 18:00:49 2004
@@ -17,13 +17,13 @@
   | Gabor Hojtsy [EMAIL PROTECTED]  |
   +--+
   
-  $Id: missing-entities.php.in,v 1.12 2004/01/01 01:08:46 goba Exp $
+  $Id: missing-entities.php.in,v 1.13 2004/08/18 22:00:49 philip Exp $
 */
 
 set_time_limit(0);
 
 // Print out info for the viewer and log files
-echo \ntesting the manual for missing elements...\n;
+echo \nTesting the manual for missing elements...\n;
 
 // If we are in a scripts dir, go one dir up
 // (because the NSGMLS path is relative to that directory!)
@@ -108,9 +108,6 @@
 // That's all for missing entities
 fclose($ment);
 
-// print out success info
-echo  entities/missing-entities.ent created\n;
-
 // If we have missing IDs, write them out as an appendix
 if (count($missing_ids)  0) {
 
@@ -125,6 +122,29 @@
 fclose($mids);
 
 // print out success info
-echo  entities/missing-ids.xml created\n;
+echo \nCreated file: entities/missing-entities.ent\n;
+if (!empty($missing_entities)) {
+foreach ($missing_entities as $k = $v) {
+echo *  . preg_replace('@[\s]+@', ' ', $v) . \n;
+}
+} else {
+echo * No missing entities were found\n;
+}
+
+echo \nCreated file: entities/missing-ids.xml\n;
+if (!empty($missing_ids)) {
+foreach ($missing_ids as $k = $v) {
+if (false !== strpos('para id=zend', $v)) {
+echo *  . preg_replace('@[\s]+@', ' ', $v) . \n;
+} else {
+echo * Zend id is missing. (Don't worry about this)\n;
+if (count($missing_ids) === 1) {
+echo * No other missing ids were found\n;
+}
+}
+}
+} else {
+echo * No missing ids found\n;
+}
 
 ?
http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.17r2=1.18ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.17 
phpdoc/scripts/file-entities.php.in:1.18
--- phpdoc/scripts/file-entities.php.in:1.17Fri Aug  6 18:37:45 2004
+++ phpdoc/scripts/file-entities.php.in Wed Aug 18 18:00:49 2004
@@ -17,7 +17,7 @@
   | Gabor Hojtsy [EMAIL PROTECTED]  |
   +--+
   
-  $Id: file-entities.php.in,v 1.17 2004/08/06 22:37:45 nlopess Exp $
+  $Id: file-entities.php.in,v 1.18 2004/08/18 22:00:49 philip Exp $
 */
 
 /**
@@ -82,7 +82,7 @@
 die(ERROR: Failed to open $script_out_dir/entities/file-entities.ent for 
writing\n);
 }
 
-echo \ncreating entities/file-entities.ent...\n;
+echo \nCreating file: entities/file-entities.ent...\n;
 
 // File header
 fputs($fp, !-- DON'T TOUCH - AUTOGENERATED BY file-entities.php --\n\n);
@@ -107,7 +107,7 @@
 !-- ZendAPI not found --\n .
 entstr(zendapi.toc, ) . \n
 );
-echo  Zend part not found\n;
+echo  Zend part (ZendAPI) not found. (Don't worry about this)\n;
 }
 
 // Reserved constants list is special [temporary]


[PHP-DOC] #29737 [Opn-Csd]: ip2long() works not as documented

2004-08-18 Thread tony2001
 ID:   29737
 Updated by:   [EMAIL PROTECTED]
 Reported By:  belikoviv at is dot lg dot ua
-Status:   Open
+Status:   Closed
-Bug Type: *Network Functions
+Bug Type: Documentation problem
 Operating System: Windows 2000 SP4; Fedora Core 2
 PHP Version:  5.0.0
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2004-08-18 16:55:35] belikoviv at is dot lg dot ua

Description:

Documentation (from 16-08-2004) says:
Note: ip2long() will return -1 for the IP 255.255.255.255
Instead it returns FALSE.


Reproduce code:
---
#!/usr/local/bin/php
?php
$ip = 255.255.255.255;
$long = ip2long ( $ip );//  if ( $long === FALSE ) $long = -1;
echo $ip, \t, $long, \t, long2ip ( $long ), \n;
?


Expected result:

255.255.255.255 -1 255.255.255.255


Actual result:
--
255.255.255.255  0.0.0.0






-- 
Edit this bug report at http://bugs.php.net/?id=29737edit=1