[PHP-DOC] Re: [PHP-DEV] Re: Fw: win32 build broken

2005-05-13 Thread Andrey Hristov
 In process of resolving - will be fixed quite soon.
Andrey
Rob Richards wrote:
It's the mysqli extension due to this commit: 
http://news.php.net/php.cvs/31779 and the addition of my_global.h
mysql config-win.h include has too many conflicting defines with TSRM, 
ZEND and PHP.

cc'd Georg.
Rob
Sebastian Bergmann wrote:
HEAD built fine for me after April 26. But it broke (at least for me)
some time after Friday.
  
Am I the only one having this problem?
 




[PHP-DOC] Re: [PHP-DEV] sqlite object-level interface

2004-08-08 Thread Andrey Hristov
[EMAIL PROTECTED] wrote:
Marcus Boerger <[EMAIL PROTECTED]> writes:

Hello Derrell,
it is a public interface! Unfortunatley we still have no way of documenting
classes on the docs page.

Thanks.  Steph forwarded me this link, which could be provided on the docs
page as additional reference, until there's a standard way to document classes
on that page...
  http://www.zend.com/php5/articles/php5-sqlite.php
Cheers,
Derrell
Maybe I am wrong but isn't there a standard way which was used in the documentation
of mysqli?
thanks,
andrey


[PHP-DOC] cvs: phpdoc /en/reference/array/functions array-diff-uassoc.xml array-udiff-assoc.xml array-udiff-uassoc.xml array-udiff.xml

2003-10-09 Thread Andrey Hristov
andrey  Thu Oct  9 03:28:40 2003 EDT

  Added files: 
/phpdoc/en/reference/array/functionsarray-diff-uassoc.xml 
array-udiff-assoc.xml 
array-udiff-uassoc.xml 
array-udiff.xml 
  Log:
  Documentation for new functions in PHP5
  
  
Index: phpdoc/en/reference/array/functions/array-diff-uassoc.xml
+++ phpdoc/en/reference/array/functions/array-diff-uassoc.xml



  
   
array_diff_uassoc
Computes the difference of arrays with additional index check which is 
performed by a user supplied callback function.
   
   
Description
 
  arrayarray_diff_assoc
  arrayarray1
  arrayarray2
  array 
...
  
callbackkey_compare_func
 

 array_diff_uassoc returns an array
 containing all the values from array1
 that are not present in any of the other arguments.
 Note that the keys are used in the comparison unlike 
 array_diff. This comparison is done by a user supplied 
callback function.
 It must return an integer less than, equal
 to, or greater than zero if the first argument is considered to
 be respectively less than, equal to, or greater than the
 second. This is unlike array_diff_assoc where an
 internal function for comparing the indices is used.


 
  array_diff_uassoc example
  

  
 


 In our example above you see the "a" => "green"
 pair is present in both arrays and thus it is not in the ouput from the
 function. Unlike this, the pair 0 => "red" 
 is in the ouput because in the second argument "red"
 has key which is 1. 


 The equality of 2 indices is checked by the user supplied callback function.


 
  Please note that this function only checks one dimension of a n-dimensional
  array. Of course you can check deeper dimensions by using, for example, 
  array_diff_uassoc($array1[0], $array2[0], 
"key_compare_func");.
 


 See also
 array_diff,
 array_diff_assoc,
 array_udiff,
 array_udiff_assoc, 
 array_udiff_uassoc, 
 array_intersect,  
 array_intersect_assoc,
 array_uintersect,  
 array_uintersect_assoc and 
 array_uintersect_uassoc.

   
  



Index: phpdoc/en/reference/array/functions/array-udiff-assoc.xml
+++ phpdoc/en/reference/array/functions/array-udiff-assoc.xml



  
   
array_udiff_assoc
Computes the difference of arrays with additional index check. The 
data is compared by using a callback function.
   
   
Description
 
  arrayarray_udiff_assoc
  arrayarray1
  arrayarray2
  array 
...
  
callbackdata_compare_func
 

 array_udiff_assoc returns an array
 containing all the values from array1
 that are not present in any of the other arguments.
 Note that the keys are used in the comparison unlike 
 array_diff and array_udiff.
 The comparison of arrays' data is performed by using an user-supplied
 callback. In this aspect the behaviour is opposite to the behaviour of
 array_diff_assoc which uses internal function for
 comparison.


 
  array_udiff_assoc example
  

  
 


 In our example above you see the "1" => new cr(4)
 pair is present in both arrays and thus it is not in the ouput from the
 function. 


 For comparison is used the user supplied callback function.
 It must return an integer less than, equal
 to, or greater than zero if the first argument is considered to
 be respectively less than, equal to, or greater than the
 second.


 
  Please note that this function only checks one dimension of a n-dimensional
  array. Of course you can check deeper dimensions by using, for example, 
  array_udiff_assoc($array1[0], $array2[0], 
"some_comparison_func");.
 


 See also
 array_diff,
 array_diff_assoc,
 array_diff_uassoc,
 array_udiff,
 array_udiff_uassoc, 
 array_intersect,  
 array_intersect_assoc,
 array_uintersect,  
 array_uintersect_assoc and 
 array_uintersect_uassoc.

   
  



Index: phpdoc/en/reference/array/functions/array-udiff-uassoc.xml
+++ phpdoc/en/reference/array/functions/array-udiff-uassoc.xml



  
   
array_udiff_uassoc
Computes the difference of arrays with additional index check. The 
data is compared by using a callback function. The index check is done by a callback 
function also
   
   
Description
 
  arrayarray_udiff_uassoc
  arrayarray1
  arrayarray2
  array 
...
  
callbackdata_compare_func
  
callbackkey_compare_func
 

 array_udiff_uassoc returns an array
 containing all the values from array1
 that are not present in any of the other arguments.
 Note th

Re: [PHP-DOC] cvs: phpdoc /en/reference/image reference.xml /en/reference/image/functions imagecreatefromgif.xml

2003-01-14 Thread Andrey Hristov
isn't only the generation impossible?



Andrey

- Original Message -
From: "CHAILLAN Nicolas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 12:48 PM
Subject: [PHP-DOC] cvs: phpdoc /en/reference/image reference.xml
/en/reference/image/functions imagecreatefromgif.xml


> nicos Tue Jan 14 05:48:57 2003 EDT
>
>   Modified files:
> /phpdoc/en/reference/image reference.xml
> /phpdoc/en/reference/image/functions imagecreatefromgif.xml
>   Log:
>   Fixing #21630
>
> Index: phpdoc/en/reference/image/reference.xml
> diff -u phpdoc/en/reference/image/reference.xml:1.13
phpdoc/en/reference/image/reference.xml:1.14
> --- phpdoc/en/reference/image/reference.xml:1.13 Thu Dec  5 16:32:46 2002
> +++ phpdoc/en/reference/image/reference.xml Tue Jan 14 05:48:56 2003
> @@ -1,5 +1,5 @@
>  
> -
> +
>  
>   Image functions
>   Image
> @@ -53,6 +53,7 @@
>  version has some additional features like alpha blending, and
should
>  be used in preference to the external library
>  since it's codebase is better maintained and more stable.
> +The bundled version of the GD lib does not support GIF.
> 
>
>  
> Index: phpdoc/en/reference/image/functions/imagecreatefromgif.xml
> diff -u phpdoc/en/reference/image/functions/imagecreatefromgif.xml:1.4
phpdoc/en/reference/image/functions/imagecreatefromgif.xml:1.5
> --- phpdoc/en/reference/image/functions/imagecreatefromgif.xml:1.4 Thu Sep
26 09:56:54 2002
> +++ phpdoc/en/reference/image/functions/imagecreatefromgif.xml Tue Jan 14
05:48:57 2003
> @@ -1,5 +1,5 @@
>  
> -
> +
>  
>
> 
> @@ -47,7 +47,8 @@
>
> Since all GIF support was removed from the GD library in
> version 1.6, this function is not available if you are using
> -   that version of the GD library.
> +   that version of the GD library or the bundled version of the
> +   GD lib.
>
>   
>  
>
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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

2003-01-09 Thread Andrey Hristov
- Original Message - 
From: "CHAILLAN Nicolas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 3:10 PM
Subject: [PHP-DOC] cvs: phpdoc /en/reference/curl reference.xml 


> nicos Thu Jan  9 08:10:11 2003 EDT
> 
>  
>   Once you've compiled PHP with CURL support, you can begin using
> - the curl functions.  The basic idea behind the CURL functions is
> + the curl functions. The basic idea behind the CURL functions is
shouldn't be that :
the CURL functions .

Andrey



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] additional example for CLI

2003-01-05 Thread Andrey Hristov
  Hi,
few minutes ago I was asked by a friend :
"How can I read the user input in CLI?"
He proposed this :



butthe user has to enter EOF (Ctrl-Z on Windows, Ctrl-D on *nix). This
is not intuitive.
So after some thinking I created this :



I haven't found an example about that issue on the CLI SAPI page.

Thanks,
Andrey


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] strange title

2003-01-04 Thread Andrey Hristov

 I know that that they are language constructions but was curious why this
happen.

Thanks for the reply.

Andrey

- Original Message -
From: "Gabor Hojtsy" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, January 04, 2003 8:03 PM
Subject: Re: [PHP-DOC] strange title


> > from the docs of array() :
> >
> > array
> >
> > (no version information, might be only in CVS)
> >
> > array -- Create an array
> >
> > Is this supposed to be in this state?
>
> It is not a function, so there is no version information.
> The same is on echo, print, exit and other non-function
> pages. Hartmut can do something about his script to add
> these things too maybe...
>
> Goba
>


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] strange title

2003-01-04 Thread Andrey Hristov
  Hi,
from the docs of array() :

array

(no version information, might be only in CVS)

array -- Create an array

Is this supposed to be in this state?

Andrey




-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] streams reference

2003-01-02 Thread Andrey Hristov
  Hi all,
maybe little offtopic but strspn() and strcspn() can get additional 2
parameters (starting 4.3.0)
I have sent modified xmls to php-doc but was asked for a diff (unified).
Unfortunately I cannot provide it.
I have also asked for php-doc karma but not received.

Philip, may I send the xmls to you?

Andrey


- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Sara Golemon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 9:26 PM
Subject: Re: [PHP-DOC] streams reference


>
> Sounds appropriate to me.  Looks like only streams
> information exists for dev/api people currently:
>
>   http://www.php.net/streams
>
> So in the end we will have php.net/streams going to
> the API docs and php.net/stream going to the
> function reference (ref.stream).  Be sure to link
> each to one another! :)
>
> There are many undocumented functions to document:
>
>   http://zend.com/phpfunc/nodoku.php
>
> That phpfunc hasn't updated since 4.3.0 but anyway
> we have some work to do it seems. :)
>
> Regards,
> Philip
>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] docs about fix

2002-12-06 Thread Andrey Hristov
 They are already binary safe in the cvs. These are modifications in the
docs.

Best regards
Andrey Hristov


- Original Message -
From: "Sander Roobol" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 1:40 PM
Subject: Re: [PHP-DOC] docs about fix


> Please provide a unified diff (diff -u) against the latest CVS (cvs diff
> -u)
>
> Sander
>
> On Fri, Dec 06, 2002 at 11:29:31AM +0200, Andrey Hristov wrote:
> >   Fixed strstr(), strchr() and strrchr() to be binary safe
> >
> > Andrey
>
>
>
>
> > --
> > PHP Documentation Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] Modified docs for strspn() and strcspn() functions

2002-12-06 Thread Andrey Hristov
 Attached are the modified docs

Andrey






  
   
strspn

 Find length of a segment matching mask

   
   
Description
 
  intstrspn
  stringstr1
  stringstr2
  intstart
  intlength
 

 Returns the length of the segment of
 str1 which consists entirely of characters
 in str2.
 In case only 2 parameters are passed the length of the initial segment is returned.
 On the other hand if the additional parameters
 start and length are	provided
 only part of the string will be checked. The way these parameters are handled is the
 same as in the substr function (this functionality is available
 in versions >= 4.3.0).


 The line of code:
 
  

  
 
 will assign 2 to $var1, because the string "42" will
 be the longest segment containing characters from "1234567890." (counted from the beggining of the string).
 $var2, $var3 and $var4 will contain respectively
 5, 3 and 3. $var3 will be 3 because the search is started at position 40th in the string
 and the longest segment is "3.0". Because of the 4th parameter in the last example only 3 positions in the
 string are checked from 38 through 41. This range contains the "4.3" string.


 See also strcspn.

   
  






  
   
strcspn

 Find length of a segment not matching mask

   
   
Description
 
  intstrcspn
  stringstr1
  stringstr2
  intstart
  intlength
 

 Returns the length of a segment of
 str1 which does not
 contain any of the characters in str2.
 In case only 2 parameters are passed the length of the initial segment is returned.
 On the other hand if the additional parameters
 start and length are	provided
 only part of the string will be checked. The way these parameters are handled is the
 same as in the substr function (this functionality is available
 in versions >= 4.3.0).


 The line of code:
 
  

  
 
 will assign 3 to $var1, because the string "so " will
 be the longest segment not containing characters from "1234567890." (counted from the beggining of the string).
 $var2, $var3 and $var4 will contain respectively
 10, 6 and 10. $var3 will be 3 because the search is started at position 28th in the string
 and the longest segment is "starts". Because of the 4th parameter in the last example 16 positions in the
 string are checked from 28 through 44. This range contains the "starts at 4.3.0 " string.


 See also strspn.

   
  




-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DOC] #20850 [Csd->Opn]: str_shuffle needs documentation - attache

2002-12-06 Thread Andrey Hristov
 I just downloaded the xml of shuffle and modified it for str_shuffle. So if
it is not needed then
the documentation of shuffle() must be fixed.

Best regards
Andrey Hristov


- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 11:34 AM
Subject: Re: [PHP-DOC] #20850 [Csd->Opn]: str_shuffle needs documentation -
attache


>
> I'm assuming a random seed isn't required as of
> PHP 4.2.0...
>
> Regards,
> Philip
>
>
> On Fri, 6 Dec 2002, Andrey Hristov wrote:
>
> > May someone with karma commit the attached xml.
> > I will ask for karma later today.
> >
> > Andrey
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, December 06, 2002 9:15 AM
> > Subject: [PHP-DOC] #20850 [Csd->Opn]: str_shuffle needs documentation
> >
> >
> > > ID:  20850
> > >  Updated by:  [EMAIL PROTECTED]
> > >  Reported By: [EMAIL PROTECTED]
> > > -Status:  Closed
> > > +Status:  Open
> > >  Bug Type:Documentation problem
> > >  PHP Version: 4CVS-2002-12-05 (dev)
> > >  New Comment:
> > >
> > > That thing @ zend.com is usually not what people use. It's a bug, and
> > > thus it belongs in the bugsystem.
> > >
> > >
> > > Previous Comments:
> >
> 
> > >
> > > [2002-12-05 22:05:47] [EMAIL PROTECTED]
> > >
> > > Nevermind.  I see that this function appears on the list at
> > > http://www.zend.com/phpfunc/nodoku.php.  There's not much point to me
> > > doubling up the information. :)
> > >
> >
> 
> > >
> > > [2002-12-05 20:36:33] [EMAIL PROTECTED]
> > >
> > > Please add str_shuffle to the documentation.  Here's the comment from
> > > the source code (ext/standard/string.c):
> > >
> > > /* {{{ proto void str_shuffle(string str)
> > >Shuffles string. One permutation of all possible is created */
> > >
> > >
> >
> 
> > >
> > >
> > > --
> > > Edit this bug report at http://bugs.php.net/?id=20850&edit=1
> > >
> > >
> > > --
> > > PHP Documentation Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] docs about fix

2002-12-06 Thread Andrey Hristov
  Fixed strstr(), strchr() and strrchr() to be binary safe

Andrey




  
   
strstr
Find first occurrence of a string
   
   
Description
 
  stringstrstr
  stringhaystack
  stringneedle
 

 Returns part of haystack string from the
 first occurrence of needle to the end of
 haystack.


 If needle is not found, returns &false;.


 If needle is not a string, it is converted
 to an integer and applied as the ordinal value of a character.


 
  This function is case-sensitive. For case-insensitive searches, use
  stristr.
 
 
  In PHP 4.3.0 file became binary safe.
 


 
  strstr example
  

  
 


 See also ereg, preg_match,
 strchr, stristr,
 strpos, strrchr, and
 substr.

   
  






  
   
strrchr

 Find the last occurrence of a character in a string

   
   
Description
 
  stringstrrchr
  stringhaystack
  stringneedle
 

 This function returns the portion of
 haystack which starts at the last
 occurrence of needle and goes until the
 end of haystack.


 Returns &false; if needle is not found.


 If needle contains more than one
 character, the first is used.


 If needle is not a string, it is converted
 to an integer and applied as the ordinal value of a character.
 
  strrchr example
  

  
 


 
  In PHP 4.3.0 file became binary safe.
 


 See also strchr, substr,
 stristr, and strstr.

   
  






  
   
strchr

 Find the first occurrence of a character

   
   
Description
 
  stringstrchr
  stringhaystack
  stringneedle
 

 This function is an alias for strstr, and is
 identical in every way.


 
  In PHP 4.3.0 file became binary safe.
 

   
  




-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DOC] #20850 [Csd->Opn]: str_shuffle needs documentation - attache

2002-12-06 Thread Andrey Hristov
May someone with karma commit the attached xml.
I will ask for karma later today.

Andrey

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 9:15 AM
Subject: [PHP-DOC] #20850 [Csd->Opn]: str_shuffle needs documentation


> ID:  20850
>  Updated by:  [EMAIL PROTECTED]
>  Reported By: [EMAIL PROTECTED]
> -Status:  Closed
> +Status:  Open
>  Bug Type:Documentation problem
>  PHP Version: 4CVS-2002-12-05 (dev)
>  New Comment:
> 
> That thing @ zend.com is usually not what people use. It's a bug, and
> thus it belongs in the bugsystem.
> 
> 
> Previous Comments:
> 
> 
> [2002-12-05 22:05:47] [EMAIL PROTECTED]
> 
> Nevermind.  I see that this function appears on the list at
> http://www.zend.com/phpfunc/nodoku.php.  There's not much point to me
> doubling up the information. :)
> 
> 
> 
> [2002-12-05 20:36:33] [EMAIL PROTECTED]
> 
> Please add str_shuffle to the documentation.  Here's the comment from
> the source code (ext/standard/string.c):
> 
> /* {{{ proto void str_shuffle(string str)
>Shuffles string. One permutation of all possible is created */
> 
> 
> 
> 
> 
> -- 
> Edit this bug report at http://bugs.php.net/?id=20850&edit=1
> 
> 
> -- 
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 




  
   
str_shuffle
Shuffle an string
   
   
Description
 
  stringstr_shuffle
  stringstr
 

 This function shuffles (randomizes the order of the chars in)
 an string. You must use srand to seed this
 function. The randomization method is the same as in shuffle.
 Keep in mind that unlike shuffle this function does
 not change the parameter passed to it but instead returns the
 randomized string.
 
  str_shuffle example
  

  
 


 See also shuffle.

   
  




-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DOC] Docs for new functions

2002-11-14 Thread Andrey Hristov

http://www.hristov.com/andrey/projects/php_stuff/array_diff_assoc.xml
and
http://www.hristov.com/andrey/projects/php_stuff/array_intersect_assoc.xml

I have to add some info about strspn(), strcspn() (new parameters added).
For strchr()/strstr() and strrchr()  : binary safe since 4.3.0

Andrey

- Original Message - 
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 10:51 PM
Subject: Re: [PHP-DOC] Docs for new functions


> Hello Andrey-
> 
> Don't you have karma for commit?  If so, put them
> here:
> 
>   en/reference/array/functions/
> 
> I'm not sure what you're asking, maybe be a 
> little more specific?  If you don't have time
> just give us a link to these files or patches.
> 
> Regards,
> Philip Olson
> 
> 
> On Thu, 14 Nov 2002, Andrey Hristov wrote:
> 
> >  Hi,
> > I've documented 2 new functions( array_diff_assoc and
> > array_intersect_assoc).
> > Where I have to send the xml files?
> > I have also few other functions for changes in the documentation.
> > 
> > Regards,
> > Andrey
> > 
> > 
> > 
> > -- 
> > PHP Documentation Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> 
> -- 
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] Docs for new functions

2002-11-14 Thread Andrey Hristov
 Hi,
I've documented 2 new functions( array_diff_assoc and
array_intersect_assoc).
Where I have to send the xml files?
I have also few other functions for changes in the documentation.

Regards,
Andrey



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php