Re: [PHP-DOC] Contributions are ready for review

2013-05-27 Thread Peter Cowburn
On 27 May 2013 19:56, Brad Dewar  wrote:

>
> The 'contribution ready for review' that is about SQLite3::createCollation
> is from me.  createCollation is a relatively new addition to PHP and is
> still undocumented.
>
> Never contributed to the docs before -- any tips on finding a committer?
>

Poke the list… oh, wait. :-)

If you haven't already, you'll need to use the magic word "kitten" in our
IRC channel (#php.doc on Efnet).


>
> Thanks,
> Brad


RE: [PHP-DOC] Contributions are ready for review

2013-05-27 Thread Brad Dewar

The 'contribution ready for review' that is about SQLite3::createCollation is 
from me.  createCollation is a relatively new addition to PHP and is still 
undocumented.

Never contributed to the docs before -- any tips on finding a committer?

Thanks,
Brad


-Original Message-
From: phpdoc@lists.php.net [mailto:phpdoc@lists.php.net]
Sent: May-27-13 9:00 AM
To: phpdoc@lists.php.net
Subject: [PHP-DOC] Contributions are ready for review

Hello PHP EN Documentation team,

There are contributions within the online editor queue for this language.
Please review, then commit or delete these patches.

Patches for review :
---

New file: en/reference/sqlite3/sqlite3/createcollation.xml
By: b dewar on 2013-04-10 04:59:20
===
--- en/reference/sqlite3/sqlite3/createcollation.xml
+++ en/reference/sqlite3/sqlite3/createcollation.xml
@@ -0,0 +1,142 @@
+
+
+
+http://docbook.org/ns/docbook";
+xmlns:xlink="http://www.w3.org/1999/xlink";>
+ 
+  SQLite3::createCollation
+
+  Registers a PHP function for use as an SQL collating
+ function 
+
+ 
+  &reftitle.description;
+  
+   public 
boolSQLite3::createCollation
+   stringname
+
+ callablecallback
+  
+  
+   Registers a PHP function or user-defined function for use as a collating
+   function within SQL statements.
+  
+ 
+
+ 
+  &reftitle.parameters;
+  
+   
+name
+
+ 
+  Name of the SQL collating function to be created or redefined
+ 
+
+   
+   
+callback
+
+ 
+  The name of a PHP function or user-defined function to apply as a
+  callback, defining the behavior of the collation.  It should accept
+  two strings and return as strcmp does, i.e. it 
should return -1, 1,
+  or 0 if the first string sorts before, sorts after, or is equal to the 
second.
+ 
+
+   
+  
+ 
+
+ 
+  &reftitle.returnvalues;
+  
+   &return.success;
+  
+ 
+
+ 
+  &reftitle.examples;
+  
+   
+SQLite3::createCollation example
+
+ Register the PHP function strnatcmp as a collating 
sequence in the SQLite3 database.
+
+
+
+
+&example.outputs;
+
+
+
+   
+  
+ 
+
+ 
+  &reftitle.seealso;
+  
+   The SQLite collation documentation: &url.sqlite.collation;
+  
+ 
+
+
+
+
 No newline at end of file


=> Put this change into your patches : 
https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=43558
=> Delete this change: 
https://edit.php.net/?project=php&action=deleteThisChange&idDB=43558

  
--

Modified: en/reference/sqlite3/versions.xml
By: b dewar on 2012-11-29 08:42:57
===
--- en/reference/sqlite3/versions.xml
+++ en/reference/sqlite3/versions.xml
@@ -9,6 +9,7 @@
  
  
  
+ 
  
  
  


=> Put this change into your patches : 
https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=43559
=> Delete this change: 
https://edit.php.net/?project=php&action=deleteThisChange&idDB=43559

  
--

Modified: en/reference/var/functions/intval.xml
By: anonymous on 2013-03-27 02:18:53
===
--- en/reference/var/functions/intval.xml
+++ en/reference/var/functions/intval.xml
@@ -40,6 +40,31 @@
   
The base for the conversion
   
+  
+   
+If base is 0, the base used is determined
+by the format of var:
+
+ 
+  
+   if string includes a "0x" (or "0X") prefix, the base is taken
+   as 16 (hex); otherwise,
+  
+ 
+ 
+  
+   if string starts with "0", the base is taken as 8 (octal);
+   otherwise,
+  
+ 
+ 
+  
+   the base is taken as 10 (decimal).
+  
+ 
+
+   
+  
  
 



=> Put this change into your patches : 
https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=46078
=> Delete this change: 
https://edit.php.net/?project=php&action=deleteThisChange&idDB=46078

  
--

Modified: en/reference/pcre/pattern.syntax.xml
By: anonymous on 2013-03-29 01:31:14
===
--- en/reference/pcre/pattern.syntax.xml
+++ en/reference/pcre/pattern.syntax.xml
@@ -271,7 +271,7 @@
  
   
a character with the xx property, see
-   unicode properties
+   Unicode
+ properties
for more info
   
  
@@ -281,7 +281,17 @@
  
   
a character without the xx property, see
-   unicode properties
+   Unicod

[PHP-DOC] Contributions are ready for review

2013-05-27 Thread phpdoc
Hello PHP EN Documentation team,

There are contributions within the online editor queue for this language.
Please review, then commit or delete these patches.

Patches for review : 
---

New file: en/reference/sqlite3/sqlite3/createcollation.xml
By: b dewar on 2013-04-10 04:59:20
===
--- en/reference/sqlite3/sqlite3/createcollation.xml
+++ en/reference/sqlite3/sqlite3/createcollation.xml
@@ -0,0 +1,142 @@
+
+
+
+http://docbook.org/ns/docbook"; 
xmlns:xlink="http://www.w3.org/1999/xlink";>
+ 
+  SQLite3::createCollation
+  
+  Registers a PHP function for use as an SQL collating 
function
+ 
+ 
+ 
+  &reftitle.description;
+  
+   public 
boolSQLite3::createCollation
+   stringname
+   
callablecallback
+  
+  
+   Registers a PHP function or user-defined function for use as a collating
+   function within SQL statements.
+  
+ 
+ 
+ 
+  &reftitle.parameters;
+  
+   
+name
+
+ 
+  Name of the SQL collating function to be created or redefined
+ 
+
+   
+   
+callback
+
+ 
+  The name of a PHP function or user-defined function to apply as a
+  callback, defining the behavior of the collation.  It should accept
+  two strings and return as strcmp does, i.e. it 
should return -1, 1,
+  or 0 if the first string sorts before, sorts after, or is equal to the 
second.
+ 
+
+   
+  
+ 
+ 
+ 
+  &reftitle.returnvalues;
+  
+   &return.success;
+  
+ 
+ 
+ 
+  &reftitle.examples;
+  
+   
+SQLite3::createCollation example
+
+ Register the PHP function strnatcmp as a collating 
sequence in the SQLite3 database.
+
+
+
+
+&example.outputs;
+
+
+
+   
+  
+ 
+ 
+ 
+  &reftitle.seealso;
+  
+   The SQLite collation documentation: &url.sqlite.collation;
+  
+ 
+ 
+
+
+
 No newline at end of file


=> Put this change into your patches : 
https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=43558
=> Delete this change: 
https://edit.php.net/?project=php&action=deleteThisChange&idDB=43558

  
--

Modified: en/reference/sqlite3/versions.xml
By: b dewar on 2012-11-29 08:42:57
===
--- en/reference/sqlite3/versions.xml
+++ en/reference/sqlite3/versions.xml
@@ -9,6 +9,7 @@
  
  
  
+ 
  
  
  


=> Put this change into your patches : 
https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=43559
=> Delete this change: 
https://edit.php.net/?project=php&action=deleteThisChange&idDB=43559

  
--

Modified: en/reference/var/functions/intval.xml
By: anonymous on 2013-03-27 02:18:53
===
--- en/reference/var/functions/intval.xml
+++ en/reference/var/functions/intval.xml
@@ -40,6 +40,31 @@
   
The base for the conversion
   
+  
+   
+If base is 0, the base used is determined
+by the format of var:
+
+ 
+  
+   if string includes a "0x" (or "0X") prefix, the base is taken
+   as 16 (hex); otherwise,
+  
+ 
+ 
+  
+   if string starts with "0", the base is taken as 8 (octal);
+   otherwise,
+  
+ 
+ 
+  
+   the base is taken as 10 (decimal).
+  
+ 
+
+   
+  
  
 



=> Put this change into your patches : 
https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=46078
=> Delete this change: 
https://edit.php.net/?project=php&action=deleteThisChange&idDB=46078

  
--

Modified: en/reference/pcre/pattern.syntax.xml
By: anonymous on 2013-03-29 01:31:14
===
--- en/reference/pcre/pattern.syntax.xml
+++ en/reference/pcre/pattern.syntax.xml
@@ -271,7 +271,7 @@
  
   
a character with the xx property, see 
-   unicode properties 
+   Unicode properties 
for more info
   
  
@@ -281,7 +281,17 @@
  
   
a character without the xx property, see 
-   unicode properties 
+   Unicode properties 
+   for more info
+  
+ 
+
+
+ X
+ 
+  
+   an Unicode grapheme, see 
+   Unicode properties 
for more info
   
  
@@ -611,7 +621,7 @@


 X
-an extended Unicode sequence
+any Unicode grapheme incl. an extended Unicode 
sequence

   
   
@@ -1020,15 +1030,7 @@

   
   
-   The X escape matches any nu

[PHP-DOC] PCRE missing pieces

2013-05-27 Thread Karoly Negyesi
Hi,

1. Subpatterns talk about numbered subpatterns but does not explain where /
how to use them. Recursive patterns mention them. Crosslink? I do not how
to add a cross-lnik.

2. I couldn't find (?+2) and (?-2) anywhere nor I have a good idea where to
put this.

3. Most important of all (?(DEFINE)) is missing. Neither this.

Best,

ChX