[PHP-DOC] cvs: phpdoc /en/appendices tokens.xml

2005-10-09 Thread Jeremy S. Johnstone
jsjohnstSun Oct  9 18:54:55 2005 EDT

  Modified files:  
/phpdoc/en/appendices   tokens.xml 
  Log:
  Added missing T_INSTANCEOF token to list.
  
  
http://cvs.php.net/diff.php/phpdoc/en/appendices/tokens.xml?r1=1.19&r2=1.20&ty=u
Index: phpdoc/en/appendices/tokens.xml
diff -u phpdoc/en/appendices/tokens.xml:1.19 
phpdoc/en/appendices/tokens.xml:1.20
--- phpdoc/en/appendices/tokens.xml:1.19Sat Nov 13 07:34:53 2004
+++ phpdoc/en/appendices/tokens.xml Sun Oct  9 18:54:53 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  List of Parser Tokens
@@ -317,6 +317,11 @@
  
 
 
+ T_INSTANCEOF
+ instanceof
+ type operators 
(PHP5 only)
+
+
  T_INT_CAST
  (int) or (integer)
  type-casting


[PHP-DOC] cvs: phpdoc /en/reference/strings/functions stristr.xml

2005-03-09 Thread Jeremy S. Johnstone
jsjohnstWed Mar  9 22:52:30 2005 EDT

  Modified files:  
/phpdoc/en/reference/strings/functions  stristr.xml 
  Log:
  Cleaned up the existing example to make it a little more clear and added two 
more examples to 
  make the usage better understood. Deleting inaccurate notes as well which 
prompted the new examples.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/stristr.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/strings/functions/stristr.xml
diff -u phpdoc/en/reference/strings/functions/stristr.xml:1.8 
phpdoc/en/reference/strings/functions/stristr.xml:1.9
--- phpdoc/en/reference/strings/functions/stristr.xml:1.8   Thu Jul 22 
18:51:12 2004
+++ phpdoc/en/reference/strings/functions/stristr.xml   Wed Mar  9 22:52:29 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -35,14 +35,43 @@
 
   
   
 
+
+ 
+  Testing if a string is found or not
+  
+
+  
+  
+
+
+ 
+  Using a non "string" needle
+  
+
+  
+  
+
 
 ¬e.bin-safe;
 


[PHP-DOC] cvs: phpdoc /en/reference/misc/functions php-check-syntax.xml

2004-07-22 Thread Jeremy S. Johnstone
jsjohnstThu Jul 22 12:13:36 2004 EDT

  Modified files:  
/phpdoc/en/reference/misc/functions php-check-syntax.xml 
  Log:
  Documented this previously undocumented feature.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/php-check-syntax.xml?r1=1.1&r2=1.2&ty=u
Index: phpdoc/en/reference/misc/functions/php-check-syntax.xml
diff -u phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.1 
phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.2
--- phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.1 Sun May  2 11:46:21 
2004
+++ phpdoc/en/reference/misc/functions/php-check-syntax.xml Thu Jul 22 12:13:36 
2004
@@ -1,5 +1,5 @@
 
-
+
 
  
   php_check_syntax
@@ -14,9 +14,47 @@
stringfile_name
stringerror_message
   
+
+ The php_check_syntax function performs a syntax (lint) check
+ on the specified filename testing for scripting errors.
+
+
+ If the second parameter is passed, the function will return the error messages 
from the syntax
+ check. This parameter must be passed by reference.
+
+
+ The following example shows how this function can be used.
+ 
+  php_check_syntax example
+  
+
+  
+  
+   The output of the above script could look something like this:
+  
+  
+
+  
+ 
+
  
 
 


[PHP-DOC] cvs: phpdoc /en/reference/strings/functions substr-count.xml

2004-05-13 Thread Jeremy S. Johnstone
jsjohnstThu May 13 22:03:12 2004 EDT

  Modified files:  
/phpdoc/en/reference/strings/functions  substr-count.xml 
  Log:
  Added a note that substr_count's needle is case sensitive.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/substr-count.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/strings/functions/substr-count.xml
diff -u phpdoc/en/reference/strings/functions/substr-count.xml:1.5 
phpdoc/en/reference/strings/functions/substr-count.xml:1.6
--- phpdoc/en/reference/strings/functions/substr-count.xml:1.5  Mon Dec 15 11:53:50 
2003
+++ phpdoc/en/reference/strings/functions/substr-count.xml  Thu May 13 22:03:12 
2004
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -16,7 +16,8 @@
 
  substr_count returns the number of times the
  needle substring occurs in the
- haystack string.
+ haystack string. Please note that
+ needle is case sensitive.
 
 
 


[PHP-DOC] cvs: phpdoc /en/reference/imap/functions imap-rfc822-parse-adrlist.xml

2003-11-02 Thread Jeremy S. Johnstone
jsjohnstSun Nov  2 10:56:41 2003 EDT

  Modified files:  
/phpdoc/en/reference/imap/functions imap-rfc822-parse-adrlist.xml 
  Log:
  Cleaned up example. Switched it to using foreach instead of while/list/each. 
  Also added extra sanity check as suggested in the notes (count($address_array) < 1).
  
  
Index: phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml
diff -u phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml:1.4 
phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml:1.5
--- phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml:1.4Wed 
Jul 16 13:14:40 2003
+++ phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xmlSun Nov  2 
10:56:41 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -51,10 +51,9 @@
 , [EMAIL PROTECTED], root";
 $address_array  = imap_rfc822_parse_adrlist($address_string,"somedomain.net");
-if(! is_array($address_array)) die("somethings wrong\n");
+if(!is_array($address_array) || count($address_array) < 1) die("something is 
wrong\n");
  
-reset($address_array);
-while(list($key,$val)=each($address_array)){
+foreach($address_array as $val) {
   print "mailbox : ".$val->mailbox."\n";
   print "host: ".$val->host."\n";
   print "personal: ".$val->personal."\n";


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

2003-07-14 Thread Jeremy S. Johnstone
jsjohnstMon Jul 14 12:46:16 2003 EDT

  Modified files:  
/phpdoc/scripts missing-entities.php.in 
  Log:
  Added check to the exec call to not have whitespace at the beginning of the command.
  
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.10 
phpdoc/scripts/missing-entities.php.in:1.11
--- phpdoc/scripts/missing-entities.php.in:1.10 Sun Mar 16 19:11:11 2003
+++ phpdoc/scripts/missing-entities.php.in  Mon Jul 14 12:46:16 2003
@@ -17,7 +17,7 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: missing-entities.php.in,v 1.10 2003/03/17 00:11:11 ae Exp $
+# $Id: missing-entities.php.in,v 1.11 2003/07/14 16:46:16 jsjohnst Exp $
 */
 
 set_time_limit(0);
@@ -41,10 +41,18 @@
 }
 
 // Execute a test of the manual
-exec(
-"@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
-"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
-);
+if("@SP_OPTIONS@" == "") {
+exec(
+"$NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
+"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
+);
+}
+else {
+exec(
+"@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
+"-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
+);
+}
 
 // Try to open files for rewriting
 $ment = fopen("entities/missing-entities.ent", "w");



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



RE: [PHP-DOC] ./configure issue with fresh cvs checkout.

2003-07-14 Thread Jeremy S. Johnstone
Here is the diff that I propose. I think you can see what I was
suggesting fairly easily.

Index: missing-entities.php.in
===
RCS file: /repository/phpdoc/scripts/missing-entities.php.in,v
retrieving revision 1.10
diff -r1.10 missing-entities.php.in
44,47c44,55
< exec(
< "@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
< "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
< );
---
> if("@SP_OPTIONS@" == "") {
> exec(
> "$NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . " .
> "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
> );
> }
> else {
> exec(
> "@SP_OPTIONS@ $NSGMLS -f $NSGMLS_OUTPUT -i [EMAIL PROTECTED]@ -D . "
.
> "-s @SRCDIR@/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml"
>     );
> }



-Original Message-
From: Gabor Hojtsy [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 3:28 AM
To: Jeremy S. Johnstone
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DOC] ./configure issue with fresh cvs checkout.


> I am having an issue with ./configure on a fresh copy of the source 
> from
> phpdoc. The issue is coming about because of the file 
> ./scripts/missing-entities.php. When the exec line is called which
runs 
> /usr/bin/onsgml it fails. The reason it is failing is because the exec

> line doesn't seem to like having a space in front of the commandline
ie 
> " /usr/bin  ". This space is caused by my system not needing any 
> SP_OPTIONS before the command line. Shouldn't we put a little logic in

> the line to make sure there is no whitespace at the front of the
command 
> before it is exec'd? I could easily implement the fix in a matter of 
> seconds, but I wanted to check and see if anyone else is having the 
> problem before I go and change anything.

Well, those SP_OPTIONS are related to languages, and noone reported this

problem yet, though there are quite some people not having SP_OPTIONS I 
guess... It's not clear to me how would that fix look. Can you please 
create a diff first, so we can review it?

Goba


-- 
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] ./configure issue with fresh cvs checkout.

2003-07-13 Thread Jeremy S. Johnstone
Title: Message



I am having an issue 
with ./configure on a fresh copy of the source from phpdoc. The issue is coming 
about because of the file ./scripts/missing-entities.php. When the exec line is 
called which runs /usr/bin/onsgml it fails. The reason it is failing is because 
the exec line doesn't seem to like having a space in front of the commandline ie 
" /usr/bin  ". This space is caused by my system not needing any SP_OPTIONS 
before the command line. Shouldn't we put a little logic in the line to make 
sure there is no whitespace at the front of the command before it is exec'd? I 
could easily implement the fix in a matter of seconds, but I wanted to check and 
see if anyone else is having the problem before I go and change 
anything.
 
 
-Jeremy


[PHP-DOC] SNMP Documentation

2003-07-13 Thread Jeremy S. Johnstone
Title: Message




Is there any reason 
why the SNMP documentation is lagging so far behind the source? There isn't a 
mention anywhere of the snmp3 functions. If the reason is simply that no one is 
doing it, I guess I will assign myself to get started on updating all of 
it.
 
-Jeremy


RE: [PHP-DOC] make: *** [test] Error 1

2003-07-13 Thread Jeremy S. Johnstone
Goto http://us3.php.net/mailing-lists.php and scroll down to where it
says unsubscribe.

-Jeremy

-Original Message-
From: J.J. Valkenier [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 13, 2003 4:52 AM
To: Gabor Hojtsy; Mehdi
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DOC] make: *** [test] Error 1


How can I get off this list? I'm trying to get myself off but it's not
working! All this mail is driving me crazy...

-Oorspronkelijk bericht-
Van: Gabor Hojtsy [mailto:[EMAIL PROTECTED]
Verzonden: Sunday, July 13, 2003 11:21 AM
Aan: Mehdi
CC: [EMAIL PROTECTED]
Onderwerp: Re: [PHP-DOC] make: *** [test] Error 1


> I'm trying to make test on the en tree, but I get some errors :  
> http://didou.keliglia.com/build.html
>
> Can someone tell me what's going wrong ? (yes, I did a cvs up)

But you have not done an autoconf and a ./configure ...

Goba


--
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] cvs: phpdoc /en/reference/snmp reference.xml

2003-07-13 Thread Jeremy S. Johnstone
jsjohnstSun Jul 13 05:45:47 2003 EDT

  Modified files:  
/phpdoc/en/reference/snmp   reference.xml 
  Log:
  Added that you can use NET-SNMP package in addition to UCD-SNMP on Unix based hosts
  
Index: phpdoc/en/reference/snmp/reference.xml
diff -u phpdoc/en/reference/snmp/reference.xml:1.6 
phpdoc/en/reference/snmp/reference.xml:1.7
--- phpdoc/en/reference/snmp/reference.xml:1.6  Mon Dec  2 07:55:41 2002
+++ phpdoc/en/reference/snmp/reference.xml  Sun Jul 13 05:45:47 2003
@@ -1,5 +1,5 @@
 
-
+
  
   SNMP functions
   SNMP
@@ -15,7 +15,8 @@
 &reftitle.required;
 
  In order to use the SNMP functions on Unix you need to install the
- UCD SNMP package. On Windows these
+ UCD SNMP or 
+ NET-SNMP package. On Windows these
  functions are only available on NT and not on Win95/98.
 




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



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

2003-07-13 Thread Jeremy S. Johnstone
jsjohnstSun Jul 13 05:43:34 2003 EDT

  Modified files:  
/phpdoc/entitiesglobal.ent 
  Log:
  Added net-snmp url of http://www.net-snmp.org
  
  
Index: phpdoc/entities/global.ent
diff -u phpdoc/entities/global.ent:1.120 phpdoc/entities/global.ent:1.121
--- phpdoc/entities/global.ent:1.120Tue Jul  8 15:28:09 2003
+++ phpdoc/entities/global.ent  Sun Jul 13 05:43:34 2003
@@ -1,6 +1,6 @@
 

RE: [PHP-DOC] Re: Application

2003-06-25 Thread Jeremy S. Johnstone
It would be nice if you would stop sending virii to the list!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DOC] Re: Application


Please see the attached zip file for details.



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