Re: [PHP-DOC] Re: Current build is broken

2005-04-06 Thread Christopher Kings-Lynne
No that's with latest cvs, every day for the last few days...  Just 
try a 'make test'...

Chris

You probably need to do a ./configure
Ah yes, you are correct.  Thanks.
Chris


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

2005-04-06 Thread Philip Olson
philip  Thu Apr  7 00:05:47 2005 EDT

  Modified files:  
/phpdoc/en/reference/misc/functions php-check-syntax.xml 
  Log:
  Removed s/5.1.0/5.0.5
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/php-check-syntax.xml?r1=1.10&r2=1.11&ty=u
Index: phpdoc/en/reference/misc/functions/php-check-syntax.xml
diff -u phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.10 
phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.11
--- phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.10Mon Apr 
 4 16:26:08 2005
+++ phpdoc/en/reference/misc/functions/php-check-syntax.xml Thu Apr  7 
00:05:47 2005
@@ -1,5 +1,5 @@
 
-
+
 
  
   php_check_syntax
@@ -79,7 +79,7 @@
  
  
   
-   5.1.0
+   5.0.5

 This function was removed from PHP.



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

2005-04-06 Thread Friedhelm Betz
betzWed Apr  6 18:51:42 2005 EDT

  Modified files:  
/phpdoc/en/reference/strings/functions  explode.xml 
  Log:
  See also: strtok
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/explode.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/strings/functions/explode.xml
diff -u phpdoc/en/reference/strings/functions/explode.xml:1.9 
phpdoc/en/reference/strings/functions/explode.xml:1.10
--- phpdoc/en/reference/strings/functions/explode.xml:1.9   Fri Mar 11 
11:11:51 2005
+++ phpdoc/en/reference/strings/functions/explode.xml   Wed Apr  6 18:51:41 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -112,7 +112,8 @@
  See also 
  preg_split,
  spliti,
- split, and
+ split,
+ strtok, and
  implode.
 



Re: [PHP-DOC] Zend API documentation to be moved to the phpdoc repository

2005-04-06 Thread Gabor Hojtsy
Cheers,
This is a long standing TODO item. Zeev finally found the time to think 
about it a bit, and agreed that the Zend API documentation is going to 
be moved to phpdoc. Here is the relevant excerpt from his mail:

 | We're willing to reassign the copyright to the PHP Doc team with
 | just one condition - we'd like there to be an attribution to
 | Zend, mentioning that the docs are based on an initial
 | contribution by Zend Technologies.
 |
 | I hope this was worth the wait :)
I propose moving the Zend API docs to phpdoc/en/zendapi, but we need to 
make up a good folder structure. We need the XML files, but not simpler 
then Extending_Zend_xml, and we also need the figures and source 
examples in some sensible folder structure. I also don't know whether it 
would be better to move on the CVS server (retaining history), or just 
copy-add-commit-remove_on_old_file...
Continuing on this long on-hold thread, it would be nice to come up with 
a structure to move the files into. phpdoc/en/zendapi might not be a 
good idea after all, since this is supposed to be a start of a 
developers manual (which will hopefully get updated eventually :). So 
the streams docs should also go in here.

What about:
  phpdoc/en/internals/zendapi
and
  phpdoc/en/internals/streams
for now :) And still bundling the ZendAPI docs and the Streams docs with 
the manual, but in the same  (until something better comes 
around). The ZendAPI XML files, figures and the streams XML files should 
be easy to relocate. Systems people hinted that we should just do "cvs 
remove" and "cvs add" since these files have nearly no practical 
history. But the hanging question remains. What to do with the code 
examples in ZendAPI? I mean:

  http://cvs.php.net/ZendAPI/source/
Any ideas? After these are handled, the remaing files (DTD, build 
system) in ZendAPI are just old crap, so if we have the content in 
phpdoc, the ZendAPI module can be removed entirely.

Goba


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

2005-04-06 Thread Gabor Hojtsy
nlopess Wed Apr  6 13:16:46 2005 EDT
  Modified files:  
/phpdoc/scripts	file-entities.php.in 
  Log:
  finally put the cygwin's openjade working. I hope all setups will work.. :) Please test.
Seems to be working fine on my debian based linux desktop.
Goba


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread David Mytton
On Apr 6, 2005 6:18 PM, Philip Olson <[EMAIL PROTECTED]> wrote:
> Have you looked at the README?

Yes, I have.
-- 
Regards,

David Mytton
http://www.olate.co.uk


Re: [PHP-DOC] Re: openjade/opensp with cygwin

2005-04-06 Thread Nuno Lopes
Where is openjade in that structure? devel/openjade?
text/openjade and text/opensp
Good. Updated the howto, and removed the references to phpdoc-tools. If
you have any more suggestion, or corrections to that part of the howto 
(or
any other part whatsoever :), feel free to step up.

Thanks for your active participation in cleaning this stuff up, it was
much needed. I hope others will also find this solution working around,
especially now that two of you confirmed that this solution works.
Nop, it doesn't work...
The file-entities file is being created with window style paths. I've 
replaced them with cygwin paths and cygwin's openjade has worked.

The file entities script is a mess, so I'll need some time to get it 
fixed..
Good to hear that the problem is not out of phpdoc, so it will get fixed 
eventually. Thanks, Nuno.

Goba

It is now fixed.
Nuno


[PHP-DOC] cvs: phpdoc /howto tools.xml

2005-04-06 Thread Nuno Lopes
nlopess Wed Apr  6 13:19:21 2005 EDT

  Modified files:  
/phpdoc/howto   tools.xml 
  Log:
  opensp is a dependencie of openjade
  
http://cvs.php.net/diff.php/phpdoc/howto/tools.xml?r1=1.26&r2=1.27&ty=u
Index: phpdoc/howto/tools.xml
diff -u phpdoc/howto/tools.xml:1.26 phpdoc/howto/tools.xml:1.27
--- phpdoc/howto/tools.xml:1.26 Sun Apr  3 17:19:06 2005
+++ phpdoc/howto/tools.xml  Wed Apr  6 13:19:18 2005
@@ -284,8 +284,8 @@
   to Windows, which are not needed for phpdoc. To install the
   minimal set of required packages select
   devel/autoconf, devel/automake,
-  devel/make, doc/libxml2,
-  text/opensp and text/openjade
+  devel/make, doc/libxml2
+  and text/openjade
   along with components, which are selected in setup by 
   default. You may also want to add devel/cvs
   to the installation list if you don't have a CVS client yet.


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread Philip Olson
> On Apr 6, 2005 4:14 PM, Gabor Hojtsy <[EMAIL PROTECTED]> wrote:
> > A quick start guide would be nice at the start of the howto, which links
> > to detailed information in the document.
> > 
> > Goba
> > 
> 
> Ok, I'll write something up either today or tomorrow.

Have you looked at the README?

Regards,
Philip


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

2005-04-06 Thread Nuno Lopes
nlopess Wed Apr  6 13:16:46 2005 EDT

  Modified files:  
/phpdoc/scripts file-entities.php.in 
  Log:
  finally put the cygwin's openjade working. I hope all setups will work.. :) 
Please test.
  
http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.36&r2=1.37&ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.36 
phpdoc/scripts/file-entities.php.in:1.37
--- phpdoc/scripts/file-entities.php.in:1.36Sun Apr  3 16:56:09 2005
+++ phpdoc/scripts/file-entities.php.in Wed Apr  6 13:16:45 2005
@@ -17,7 +17,7 @@
   | Gabor Hojtsy <[EMAIL PROTECTED]>  |
   +--+
   
-  $Id: file-entities.php.in,v 1.36 2005/04/03 20:56:09 goba Exp $
+  $Id: file-entities.php.in,v 1.37 2005/04/06 17:16:45 nlopess Exp $
 */
 
 /**
@@ -50,30 +50,14 @@
 // Zend API integration info (either a path or "not found")
 $zendapi = ("@ZENDAPI@" == "not found" ? FALSE : "@ZENDAPI@");
 
-// If Jade is used on Windows outside Cygwin, it
-// needs Windows like path values later on
-$windows_jade = ((bool) @WINJADE@);
-
-// The output directory, which we need to parse for windows specific
-// things, and correct all problems is needed.
-// Also use absolute path to have meaningful error messages
-$out_dir = abs_path(strip_cygdrive("@WORKDIR@"));
-
-// this path if used for saving the ent file:
-$script_out_dir = $windows_jade ? $out_dir : "@WORKDIR@";
+$not_windows = !eregi('WIN',PHP_OS);
 
-// The documentation source directory 
-$srcdir = abs_path("@SRCDIR@");
-
-// The translation subdir to use
-$trans_dir = "$srcdir/@LANGDIR@";
+// The dir for PHP. If the cygwin wasn't compiled on Cygwin, the path needs to 
be striped.
+$out_dir = ($not_windows || eregi('CYGWIN',php_uname()))? "@WORKDIR@" : 
abs_path(strip_cygdrive("@WORKDIR@"));
 
 // The language encoding to use
 $encoding = "@ENCODING@";
 
-// The original directory is in the base directory, and named "en"
-$orig_dir = "$srcdir/en";
-
 // PHP, PECL and additional extension source directories if given
 $php_source  = ("@PHP_SOURCE@"  === "no" ? false : abs_path("@PHP_SOURCE@"));
 $pecl_source = ("@PECL_SOURCE@" === "no" ? false : abs_path("@PECL_SOURCE@"));
@@ -88,9 +72,9 @@
 
 // Put all the file entitites into $entities
 $entities = array();
-file_entities($orig_dir, $trans_dir, $orig_dir, $entities);
+file_entities("$out_dir/en", "$out_dir/@LANGDIR@", "$out_dir/en", $entities);
 
-$refdir = "$orig_dir/reference";
+$refdir = "$out_dir/en/reference";
 $dh = opendir($refdir);
 while ($dir = readdir($dh)) {
if ($dir{0} === ".") continue; // ignore system dir entries and hidden 
files
@@ -163,9 +147,9 @@
 
 
 // Open file for appending and write out all entitities
-$fp = fopen("$script_out_dir/entities/file-entities.ent", "w");
+$fp = fopen("$out_dir/entities/file-entities.ent", "w");
 if (!$fp) {
-die("ERROR: Failed to open $script_out_dir/entities/file-entities.ent for 
writing\n");
+die("ERROR: Failed to open $out_dir/entities/file-entities.ent for 
writing\n");
 }
 
 echo "\nCreating file: entities/file-entities.ent...\n";
@@ -262,13 +246,7 @@
  * @return boolean Success signal
  */
 function file_entities($work_dir, $trans_dir, $orig_dir, &$entities, 
$prefix=false) {
-// Skip the function directory not under "reference". That
-// folder is only kept for backward compatibility and only
-// in the English version of the docs.
-if (!$prefix && strpos($work_dir, "functions") && 
!preg_match("!reference/.*/functions!", $work_dir)) {
-return;
-}
-
+
 // Compute translated version's path
 $trans_path = str_replace($orig_dir, $trans_dir, $work_dir);
 
@@ -418,7 +396,7 @@
 if ($filename == "") {
 return sprintf("\n", $entname);
 } else {
-return sprintf("\n", $entname, 
strip_cygdrive($filename));
+return sprintf("\n", $entname, 
file2jade($filename));
 }
 }
 
@@ -429,13 +407,23 @@
  * @return string windows style path
  */
 function strip_cygdrive($path){
-if (!$GLOBALS['windows_jade']) {
-return $path;
-}
 return preg_replace(array('!^/cygdrive/(\w)/!', '@^/home/.+$@'), 
array('\1:/', strtr(dirname(dirname(__FILE__)), '\\', '/')), $path);
 }
 
 
+/* Converts a path to the appropriate style for Jade */
+function file2jade($path) {
+
+if ($GLOBALS['not_windows'])
+   return $path;
+
+if ((bool)@WINJADE@) {
+return strip_cygdrive($path);
+} else {
+return preg_replace('@^([a-zA-Z]):/@S', '/cygdrive/$1/', $path);
+}
+}
+
 /** 
  * Create a reference 
  *


[PHP-DOC] cvs: phpdoc /howto howto.html.tar.gz

2005-04-06 Thread Gabor Hojtsy
gobaWed Apr  6 12:38:01 2005 EDT

  Removed files:   
/phpdoc/howto   howto.html.tar.gz 
  Log:
  no use for this file anymore, it is generated elsewhere
  



Re: [PHP-DOC] cvs: phpdoc /howto howto.ent howto.html.tar.gz

2005-04-06 Thread Mehdi Achour
Gabor Hojtsy wrote:
>> didouWed Apr  6 12:22:51 2005 EDT
>>
>>   Modified files:  /phpdoc/howtohowto.ent
>> howto.html.tar.gz   Log:
>>   Changes urls here
>>   http://cvs.php.net/diff.php/phpdoc/howto/howto.ent?r1=1.28&r2=1.29&ty=u
>> Index: phpdoc/howto/howto.ent
>> diff -u phpdoc/howto/howto.ent:1.28 phpdoc/howto/howto.ent:1.29
>> --- phpdoc/howto/howto.ent:1.28Mon Apr  4 14:19:34 2005
>> +++ phpdoc/howto/howto.entWed Apr  6 12:22:50 2005
>> @@ -31,8 +31,8 @@
>>  > "http://www.php.net/distributions/php_manual_en.pdf";>
>>  > "http://www.php.net/distributions/manual.rtf";> > url.php.news "http://php.net/php4news";>
>> -http://php.net/get/dochowto";>
>> -http://doc.php.net/dochowto";>
>> +> "http://doc.php.net/php/dochowto/howto.html.tar.gz";>
>> +http://doc.php.net/php/dochowto";>
>>  http://doc.php.net/";>
> 
> 
> php.net/get/dochowto is fine, and actually looks much better :) And it
> works (or is going to work after php.net updates the code).

Fixed thanks !

didou


[PHP-DOC] cvs: phpdoc /howto howto.ent

2005-04-06 Thread Mehdi Achour
didou   Wed Apr  6 12:30:27 2005 EDT

  Modified files:  
/phpdoc/howto   howto.ent 
  Log:
  fix the download url again
  
http://cvs.php.net/diff.php/phpdoc/howto/howto.ent?r1=1.29&r2=1.30&ty=u
Index: phpdoc/howto/howto.ent
diff -u phpdoc/howto/howto.ent:1.29 phpdoc/howto/howto.ent:1.30
--- phpdoc/howto/howto.ent:1.29 Wed Apr  6 12:22:50 2005
+++ phpdoc/howto/howto.ent  Wed Apr  6 12:30:26 2005
@@ -31,7 +31,7 @@
 http://www.php.net/distributions/php_manual_en.pdf";>
 http://www.php.net/distributions/manual.rtf";>   
 
 http://php.net/php4news";>
-http://doc.php.net/php/dochowto/howto.html.tar.gz";>
+http://php.net/get/dochowto";>
 http://doc.php.net/php/dochowto";>
 http://doc.php.net/";>
 


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC]

2005-04-06 Thread Mehdi Achour
Gabor Hojtsy wrote:
>> Do you know how to link to the archive from the generated howto ?
> 
> 
> howto.ent is used for URLs in the howto.

I changed the howto.ent (sorry, the .tar.gz wasn't meant to be part
of the commit). Is the BC for php.net/get/dochowto okay on php-web ?

didou


Re: [PHP-DOC] cvs: phpdoc /howto howto.ent howto.html.tar.gz

2005-04-06 Thread Gabor Hojtsy
didou   Wed Apr  6 12:22:51 2005 EDT
  Modified files:  
/phpdoc/howto	howto.ent howto.html.tar.gz 
  Log:
  Changes urls here
  
http://cvs.php.net/diff.php/phpdoc/howto/howto.ent?r1=1.28&r2=1.29&ty=u
Index: phpdoc/howto/howto.ent
diff -u phpdoc/howto/howto.ent:1.28 phpdoc/howto/howto.ent:1.29
--- phpdoc/howto/howto.ent:1.28	Mon Apr  4 14:19:34 2005
+++ phpdoc/howto/howto.ent	Wed Apr  6 12:22:50 2005
@@ -31,8 +31,8 @@
 http://www.php.net/distributions/php_manual_en.pdf";>
 http://www.php.net/distributions/manual.rtf";>
 http://php.net/php4news";>
-http://php.net/get/dochowto";>
-http://doc.php.net/dochowto";>
+http://doc.php.net/php/dochowto/howto.html.tar.gz";>
+http://doc.php.net/php/dochowto";>
 http://doc.php.net/";>
php.net/get/dochowto is fine, and actually looks much better :) And it 
works (or is going to work after php.net updates the code).

Goba


[PHP-DOC] #22064 [Asn->Csd]: mb_send_mail hard-coded to send text/plain

2005-04-06 Thread vrana
 ID:   22064
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jc at mega-bucks dot co dot jp
-Status:   Assigned
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: Red Hat Linux 7.2
 PHP Version:  4.3.0
 Assigned To:  moriyoshi
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

"Content-Type and Content-Transfer-Encoding headers can be redefined as
of PHP 5.0.0. In PHP 4, values defined by mb_language() are always
used."


Previous Comments:


[2004-06-30 12:38:53] [EMAIL PROTECTED]

A sentence in my last comment "..., but in php5" was a bit confusing.
That would mean the feature has already been brought into PHP5 betas
and there'll be no plan to add it to PHP4 as well. 

Recategolising as a documentation problem.



[2004-06-30 12:15:23] c dot thiele at ewerk dot com

This bug is over one year in the list and there is no bugfix in a
current 4.3.x release?? Just added to PHP5? Thats really amazing and a
problem, you should mention inside the documentation.



[2003-02-18 12:55:33] [EMAIL PROTECTED]

This bug has been really fixed in CVS.

Now you can override the hard-coded headers such as Content-Type and
Content-Transfer-Encoding by the additional header parameter.

example: 

mb_send_mail("[EMAIL PROTECTED]", "subject", "any contents",
"Content-Type: text/html; charset=utf-8");

I'm afraid the fix won't be available in the next release, but in
php5.

You can try the latest CVS snapshot (unstable) which you can fetch at
http://snaps.php.net/ .

Thank you for the report and for helping us make PHP better.




[2003-02-05 07:23:36] jc at mega-bucks dot co dot jp

Great. You can closed the report then =)



[2003-02-05 07:14:30] [EMAIL PROTECTED]

This work is in progress.
Stay tuned!






The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22064

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


[PHP-DOC] cvs: phpdoc /en/reference/mbstring/functions mb-send-mail.xml

2005-04-06 Thread Jakub Vrana
vrana   Wed Apr  6 12:23:29 2005 EDT

  Modified files:  
/phpdoc/en/reference/mbstring/functions mb-send-mail.xml 
  Log:
  Content-Type and Content-Transfer-Encoding headers (bug #22064)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/mbstring/functions/mb-send-mail.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/mbstring/functions/mb-send-mail.xml
diff -u phpdoc/en/reference/mbstring/functions/mb-send-mail.xml:1.4 
phpdoc/en/reference/mbstring/functions/mb-send-mail.xml:1.5
--- phpdoc/en/reference/mbstring/functions/mb-send-mail.xml:1.4 Fri Aug 20 
05:36:59 2004
+++ phpdoc/en/reference/mbstring/functions/mb-send-mail.xml Wed Apr  6 
12:23:29 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -43,6 +43,14 @@
  headers.  Multiple extra headers are separated with a
  newline ("\n").
 
+
+ 
+  Content-Type and
+  Content-Transfer-Encoding headers can be redefined as
+  of PHP 5.0.0. In PHP 4, values defined by
+  mb_language are always used.
+ 
+
 
  additional_parameter is a MTA command line
  parameter. It is useful when setting the correct Return-Path


[PHP-DOC] cvs: phpdoc /howto howto.ent howto.html.tar.gz

2005-04-06 Thread Mehdi Achour
didou   Wed Apr  6 12:22:51 2005 EDT

  Modified files:  
/phpdoc/howto   howto.ent howto.html.tar.gz 
  Log:
  Changes urls here
  
http://cvs.php.net/diff.php/phpdoc/howto/howto.ent?r1=1.28&r2=1.29&ty=u
Index: phpdoc/howto/howto.ent
diff -u phpdoc/howto/howto.ent:1.28 phpdoc/howto/howto.ent:1.29
--- phpdoc/howto/howto.ent:1.28 Mon Apr  4 14:19:34 2005
+++ phpdoc/howto/howto.ent  Wed Apr  6 12:22:50 2005
@@ -31,8 +31,8 @@
 http://www.php.net/distributions/php_manual_en.pdf";>
 http://www.php.net/distributions/manual.rtf";>   
 
 http://php.net/php4news";>
-http://php.net/get/dochowto";>
-http://doc.php.net/dochowto";>
+http://doc.php.net/php/dochowto/howto.html.tar.gz";>
+http://doc.php.net/php/dochowto";>
 http://doc.php.net/";>
 
 
http://cvs.php.net/diff.php/phpdoc/howto/howto.html.tar.gz?r1=1.29&r2=1.30&ty=u
Index: phpdoc/howto/howto.html.tar.gz


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC]

2005-04-06 Thread Gabor Hojtsy
Great !!
Speaking about the downloable version of the howto. I just discovered
make
howtotgz but it keep segfaulting for me as well as make howto and make
howtophp. I was only able to run make howto_xsl without problems. Is this
a know issue or is it a problem on my side?
Make howto and make howtotgz work for me. http://php.net/get/dochowto is
directed to the latest howto.tar.gz file download from phpdc CVS by the
way. It would also be nice to build this automatically at doc.php.net,
when the howto builds, and direct the download shorcut to that URL.
Finally it worked for me too! I just added two line in the weekly cron
of docweb. This .tar.gz should be available under
http://doc.php.net/php/howto.html.tar.gz soon.
You mean http://doc.php.net/php/dochowto/howto.html.tar.gz don't you?
Do you know how to link to the archive from the generated howto ?
howto.ent is used for URLs in the howto.
Goba


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC]

2005-04-06 Thread Mehdi Achour
Gabor Hojtsy wrote:
>> Great !!
>> Speaking about the downloable version of the howto. I just discovered
>> make
>> howtotgz but it keep segfaulting for me as well as make howto and make
>> howtophp. I was only able to run make howto_xsl without problems. Is this
>> a know issue or is it a problem on my side?
> 
> 
> Make howto and make howtotgz work for me. http://php.net/get/dochowto is
> directed to the latest howto.tar.gz file download from phpdc CVS by the
> way. It would also be nice to build this automatically at doc.php.net,
> when the howto builds, and direct the download shorcut to that URL.

Finally it worked for me too! I just added two line in the weekly cron
of docweb. This .tar.gz should be available under
http://doc.php.net/php/howto.html.tar.gz soon.
Do you know how to link to the archive from the generated howto ?

didou


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC]

2005-04-06 Thread Gabor Hojtsy
Great !!
Speaking about the downloable version of the howto. I just discovered make
howtotgz but it keep segfaulting for me as well as make howto and make
howtophp. I was only able to run make howto_xsl without problems. Is this
a know issue or is it a problem on my side?
Make howto and make howtotgz work for me. http://php.net/get/dochowto is 
directed to the latest howto.tar.gz file download from phpdc CVS by the 
way. It would also be nice to build this automatically at doc.php.net, 
when the howto builds, and direct the download shorcut to that URL.

Goba


[PHP-DOC] cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-register-php-functions.xml

2005-04-06 Thread Mehdi Achour
didou   Wed Apr  6 11:35:00 2005 EDT

  Modified files:  
/phpdoc/en/reference/xsl/functions  

xsl-xsltprocessor-register-php-functions.xml 
  Log:
  Fix version
  # thanks Nuno
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml?r1=1.4&r2=1.5&ty=u
Index: 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
diff -u 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.4
 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.5
--- 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.4
  Wed Apr  6 10:43:07 2005
+++ 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml  
Wed Apr  6 11:34:59 2005
@@ -1,5 +1,5 @@
 
-
+
 
  
   XSLTProcessor->registerPHPFunctions()
@@ -59,7 +59,7 @@
  
  
   
-   5.0.5
+   5.1.0

 The restrict parameter was added.



Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-register-php-functions.xml

2005-04-06 Thread Mehdi Achour
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
X-Enigmail-Version: 0.90.2.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Thanks :) Seems like I still didn't get the logic :$.

didou

Nuno Lopes wrote:
> It was added to PHP 5.1.0, not to the PHP_5_0 branch.
> Nuno
> 
> 
> - Original Message -
> 
>> didou Wed Apr  6 10:43:08 2005 EDT
>>
>>  Modified files:
>>/phpdoc/en/reference/xsl/functions
>>
>> xsl-xsltprocessor-register-php-functions.xml
>>  Log:
>>  Add the new optional parameter that allows to restrict the available
>> functions.
>>
>> http://cvs.php.net/diff.php/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml?r1=1.3&r2=1.4&ty=u
>>
>> Index:
>> phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
>>
>> diff -u
>> phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3
>> phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.4
>>
>> --- 
>> phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3
>> Tue Dec 28 04:24:31 2004
>> +++
>> phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
>> Wed Apr  6 10:43:07 2005
>> @@ -1,5 +1,5 @@
>> 
>> -
>> +
>> 
>>  
>>   XSLTProcessor->registerPHPFunctions()
>> @@ -12,7 +12,7 @@
>>
>> void
>> registerPHPFunctions
>> -
>> +> choice="opt">mixedrestrict
>>
>>
>>   
>>   
>> @@ -20,12 +20,55 @@
>>within XSL stylesheets.
>>   
>>  
>> + 
>> +  &reftitle.parameters;
>> +  
>> +   
>> +
>> + restrict
>> + 
>> +  
>> +   Use this parameter to only allow certain functions to be
>> called from
>> +   XSLT.
>> +  
>> +  
>> +   This parameter can be either a string (a function name) or an
>> array of
>> +   functions.
>> +  
>> + 
>> +
>> +   
>> +  
>> + 
>>  
>>   &reftitle.returnvalues;
>>   
>>&return.void;
>>   
>>  
>> + 
>> +  &reftitle.changelog;
>> +  
>> +   
>> +
>> + 
>> +  
>> +   &Version;
>> +   &Description;
>> +  
>> + 
>> + 
>> +  
>> +   5.0.5
>> +   
>> +The restrict parameter was added.
>> +   
>> +  
>> + 
>> +
>> +   
>> +  
>> + 
>>  


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC]

2005-04-06 Thread Mehdi Achour
Gabor Hojtsy wrote:
 1) I don't know how to update the HOWTO on php.net andthis was
 brought up once, summary: wait for docweb
 2) Nobody knows when the upcoming phpdocweb site, codenamed
   "docweb", will be online. It however is where the
   updated php doc HOWTO will eventually always live.
   * http://doc.php.net/php/dochowto/
>>>
>>>
>>> IMHO the doc howto at doc.php.net is supposed to be up to date. If not,
>>> it should be added to the cronjobs. If this is handled, the dochowto at
>>> php.net should be removed completely, and a redirection should be put in
>>> place to the doc site. Doc.php.net also should host a howto download
>>> file somewhere for those, who have modem access, so they can get the
>>> howto for offline browsing.
>>
>>
>> Now that http://doc.php.net/php/dochowto/ updates weekly and given the
>> fact
>> that we don't propose a downloadable format for the howto on www.php.net,
>> why don't we switch the URLs ?
> 
> 
> OK, just removed the howto copy bit from the cronjob. I was unable to
> find, where it gets generated after all, since the mirror targets in
> phpdoc does not include the howto, while it somehow should get
> generated, as otherwise it would not be copied.
> 
> I also disabled the revcheck generation code on the build machine, so
> revchecks will also disapear from the mirror sites after the next builds.
> 
> Doc.php.net is now the place to go for these stuff.

Great !!
Speaking about the downloable version of the howto. I just discovered make
howtotgz but it keep segfaulting for me as well as make howto and make
howtophp. I was only able to run make howto_xsl without problems. Is this
a know issue or is it a problem on my side?

Mehdi


[PHP-DOC] cvs: phpdoc /en/reference/var/functions get-defined-vars.xml get-resource-type.xml is-resource.xml is-scalar.xml var-dump.xml var-export.xml

2005-04-06 Thread Mehdi Achour
didou   Wed Apr  6 11:26:39 2005 EDT

  Modified files:  
/phpdoc/en/reference/var/functions  get-defined-vars.xml 
get-resource-type.xml 
is-resource.xml is-scalar.xml 
var-dump.xml var-export.xml 
  Log:
  Fix PHP Version
  Switch more files to the new layout
  http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/get-defined-vars.xml?r1=1.10&r2=1.11&ty=u
Index: phpdoc/en/reference/var/functions/get-defined-vars.xml
diff -u phpdoc/en/reference/var/functions/get-defined-vars.xml:1.10 
phpdoc/en/reference/var/functions/get-defined-vars.xml:1.11
--- phpdoc/en/reference/var/functions/get-defined-vars.xml:1.10 Thu Jan 13 
21:29:17 2005
+++ phpdoc/en/reference/var/functions/get-defined-vars.xml  Wed Apr  6 
11:26:37 2005
@@ -1,5 +1,5 @@
 
-
+
 
  
   get_defined_vars
@@ -72,7 +72,7 @@
  
  
   
-   5
+   5.0.0

 The $GLOBALS variable is included in the results of
 the array returned.
http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/get-resource-type.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/var/functions/get-resource-type.xml
diff -u phpdoc/en/reference/var/functions/get-resource-type.xml:1.6 
phpdoc/en/reference/var/functions/get-resource-type.xml:1.7
--- phpdoc/en/reference/var/functions/get-resource-type.xml:1.6 Thu Aug 12 
11:29:06 2004
+++ phpdoc/en/reference/var/functions/get-resource-type.xml Wed Apr  6 
11:26:37 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -8,19 +8,49 @@
  Returns the resource type
 

-   
-Description
+   
+&reftitle.description;
  
   stringget_resource_type
   
resourcehandle
  
 
- This function returns a string representing the type of the
- resource passed to it. If the parameter is not a valid
- resource, it generates an error.
+ This function gets the type of the given resource.
 
+   
+   
+&reftitle.parameters;
+
+ 
+  
+   handle
+   
+
+ The evaluated resource handle.
+
+   
+  
+ 
+
+   
+   
+&reftitle.returnvalues;
+
+ If the given handle is a resource, this function
+ will return a string representing its type. If the type is not identified
+ by this function, the return value will be the string 
+ Unknown.
+
+
+ This function will return &false; and generate an error if 
+ handle is not a resource.
+
+   
+   
+&reftitle.examples;
 
- 
+ 
+  get_resource_type example
   
 
   
- 
+ 
 

   
http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/is-resource.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/var/functions/is-resource.xml
diff -u phpdoc/en/reference/var/functions/is-resource.xml:1.4 
phpdoc/en/reference/var/functions/is-resource.xml:1.5
--- phpdoc/en/reference/var/functions/is-resource.xml:1.4   Tue Feb 22 
15:31:46 2005
+++ phpdoc/en/reference/var/functions/is-resource.xml   Wed Apr  6 11:26:37 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -8,17 +8,40 @@
  Finds whether a variable is a resource
 

-   
-Description
+   
+&reftitle.description;
  
   boolis_resource
   mixedvar
  
 
- is_resource returns &true; if the variable
- given by the var parameter is a 
- resource, otherwise it returns &false;.
+ Finds whether the given variable is a resource.
 
+   
+   
+&reftitle.parameters;
+
+ 
+  
+   var
+   
+
+ The variable being evaluated.
+
+   
+  
+ 
+
+   
+   
+&reftitle.returnvalues;
+
+ Returns &true; if var is a resource,
+ &false; otherwise.
+
+   
+   
+&reftitle.examples;
 
  
   using is_resource
@@ -36,11 +59,15 @@
   
  
 
+   
+   
+&reftitle.seealso;
 
- See the documentation on the resource-type for
- more information, and 
- get_resource_type.
-
+ 
+  The resource-type documentation
+  get_resource_type
+ 
+  

   
 
http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/is-scalar.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/var/functions/is-scalar.xml
diff -u phpdoc/en/reference/var/functions/is-scalar.xml:1.6 
phpdoc/en/reference/var/functions/is-scalar.xml:1.7
--- phpdoc/en/reference/var/functions/is-scalar.xml:1.6 Thu Sep 23 03:44:36 2004
+++ phpdoc/en/reference/var/functions/is-scalar.xml Wed Apr  6 11:26:37 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -15,16 +15,50 @@
   mixedvar
  
 
- is_scalar returns &true; if the variable
- given by the var parameter is a scalar,
- otherwise it returns &false;.
+ Finds whether the given variable is a scalar.
 
 
  Scalar variables are those containing an integer, 
  float, string or boolean.  

Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread David Mytton
On Apr 6, 2005 4:14 PM, Gabor Hojtsy <[EMAIL PROTECTED]> wrote:
> A quick start guide would be nice at the start of the howto, which links
> to detailed information in the document.
> 
> Goba
> 

Ok, I'll write something up either today or tomorrow.
-- 
Regards,

David Mytton
http://www.olate.co.uk


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread Gabor Hojtsy
Since I recently started working on the docs, do you think it is worth
me writing a quick start document with bullet points explaining
exactly how to get involved (referencing pages in the howto)? When I
originally looked at it, I found the howto very in depth and not that
great for beginners.
A quick start guide would be nice at the start of the howto, which links 
to detailed information in the document.

Goba


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread David Mytton
Since I recently started working on the docs, do you think it is worth
me writing a quick start document with bullet points explaining
exactly how to get involved (referencing pages in the howto)? When I
originally looked at it, I found the howto very in depth and not that
great for beginners.
-- 
Regards,

David Mytton
http://www.olate.co.uk


Re: [PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread Gabor Hojtsy
1) I don't know how to update the HOWTO on php.net andthis was
brought up once, summary: wait for docweb
2) Nobody knows when the upcoming phpdocweb site, codenamed
  "docweb", will be online. It however is where the
  updated php doc HOWTO will eventually always live.
  * http://doc.php.net/php/dochowto/
IMHO the doc howto at doc.php.net is supposed to be up to date. If not,
it should be added to the cronjobs. If this is handled, the dochowto at
php.net should be removed completely, and a redirection should be put in
place to the doc site. Doc.php.net also should host a howto download
file somewhere for those, who have modem access, so they can get the
howto for offline browsing.
Now that http://doc.php.net/php/dochowto/ updates weekly and given the fact
that we don't propose a downloadable format for the howto on www.php.net,
why don't we switch the URLs ?
OK, just removed the howto copy bit from the cronjob. I was unable to 
find, where it gets generated after all, since the mirror targets in 
phpdoc does not include the howto, while it somehow should get 
generated, as otherwise it would not be copied.

I also disabled the revcheck generation code on the build machine, so 
revchecks will also disapear from the mirror sites after the next builds.

Doc.php.net is now the place to go for these stuff.
Goba


Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-register-php-functions.xml

2005-04-06 Thread Nuno Lopes
It was added to PHP 5.1.0, not to the PHP_5_0 branch.
Nuno
- Original Message - 
didou Wed Apr  6 10:43:08 2005 EDT
 Modified files:
   /phpdoc/en/reference/xsl/functions
xsl-xsltprocessor-register-php-functions.xml
 Log:
 Add the new optional parameter that allows to restrict the available 
functions.

http://cvs.php.net/diff.php/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml?r1=1.3&r2=1.4&ty=u
Index: 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
diff -u 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.4
---  
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3 
Tue Dec 28 04:24:31 2004
+++ 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml 
Wed Apr  6 10:43:07 2005
@@ -1,5 +1,5 @@

-
+

 
  XSLTProcessor->registerPHPFunctions()
@@ -12,7 +12,7 @@
   
void
registerPHPFunctions
-
+mixedrestrict
   
  
  
@@ -20,12 +20,55 @@
   within XSL stylesheets.
  
 
+ 
+  &reftitle.parameters;
+  
+   
+
+ restrict
+ 
+  
+   Use this parameter to only allow certain functions to be called 
from
+   XSLT.
+  
+  
+   This parameter can be either a string (a function name) or an 
array of
+   functions.
+  
+ 
+
+   
+  
+ 
 
  &reftitle.returnvalues;
  
   &return.void;
  
 
+ 
+  &reftitle.changelog;
+  
+   
+
+ 
+  
+   &Version;
+   &Description;
+  
+ 
+ 
+  
+   5.0.5
+   
+The restrict parameter was added.
+   
+  
+ 
+
+   
+  
+ 
 


Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-register-php-functions.xml

2005-04-06 Thread Nuno Lopes
It was added to PHP 5.1.0, not to the PHP_5_0 branch.
Nuno
- Original Message - 
didou Wed Apr  6 10:43:08 2005 EDT
 Modified files:
   /phpdoc/en/reference/xsl/functions
xsl-xsltprocessor-register-php-functions.xml
 Log:
 Add the new optional parameter that allows to restrict the available 
functions.

http://cvs.php.net/diff.php/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml?r1=1.3&r2=1.4&ty=u
Index: 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
diff -u 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.4
---  
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3 
Tue Dec 28 04:24:31 2004
+++ 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml 
Wed Apr  6 10:43:07 2005
@@ -1,5 +1,5 @@

-
+

 
  XSLTProcessor->registerPHPFunctions()
@@ -12,7 +12,7 @@
   
void
registerPHPFunctions
-
+mixedrestrict
   
  
  
@@ -20,12 +20,55 @@
   within XSL stylesheets.
  
 
+ 
+  &reftitle.parameters;
+  
+   
+
+ restrict
+ 
+  
+   Use this parameter to only allow certain functions to be called 
from
+   XSLT.
+  
+  
+   This parameter can be either a string (a function name) or an 
array of
+   functions.
+  
+ 
+
+   
+  
+ 
 
  &reftitle.returnvalues;
  
   &return.void;
  
 
+ 
+  &reftitle.changelog;
+  
+   
+
+ 
+  
+   &Version;
+   &Description;
+  
+ 
+ 
+  
+   5.0.5
+   
+The restrict parameter was added.
+   
+  
+ 
+
+   
+  
+ 
 


Re: [PHP-DOC] Re: openjade/opensp with cygwin

2005-04-06 Thread Gabor Hojtsy
Where is openjade in that structure? devel/openjade?
text/openjade and text/opensp
Good. Updated the howto, and removed the references to phpdoc-tools. If
you have any more suggestion, or corrections to that part of the howto 
(or
any other part whatsoever :), feel free to step up.

Thanks for your active participation in cleaning this stuff up, it was
much needed. I hope others will also find this solution working around,
especially now that two of you confirmed that this solution works.
Nop, it doesn't work...
The file-entities file is being created with window style paths. I've 
replaced them with cygwin paths and cygwin's openjade has worked.

The file entities script is a mess, so I'll need some time to get it 
fixed..
Good to hear that the problem is not out of phpdoc, so it will get fixed 
eventually. Thanks, Nuno.

Goba


[PHP-DOC] cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-register-php-functions.xml

2005-04-06 Thread Mehdi Achour
didou   Wed Apr  6 10:43:08 2005 EDT

  Modified files:  
/phpdoc/en/reference/xsl/functions  

xsl-xsltprocessor-register-php-functions.xml 
  Log:
  Add the new optional parameter that allows to restrict the available 
functions.
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml?r1=1.3&r2=1.4&ty=u
Index: 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
diff -u 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3
 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.4
--- 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.3
  Tue Dec 28 04:24:31 2004
+++ 
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml  
Wed Apr  6 10:43:07 2005
@@ -1,5 +1,5 @@
 
-
+
 
  
   XSLTProcessor->registerPHPFunctions()
@@ -12,7 +12,7 @@

 void
 registerPHPFunctions
-
+mixedrestrict

   
   
@@ -20,12 +20,55 @@
within XSL stylesheets.
   
  
+ 
+  &reftitle.parameters;
+  
+   
+
+ restrict
+ 
+  
+   Use this parameter to only allow certain functions to be called from 
+   XSLT.
+  
+  
+   This parameter can be either a string (a function name) or an array of
+   functions.
+  
+ 
+
+   
+  
+ 
  
   &reftitle.returnvalues;
   
&return.void;
   
  
+ 
+  &reftitle.changelog;
+  
+   
+
+ 
+  
+   &Version;
+   &Description;
+  
+ 
+ 
+  
+   5.0.5
+   
+The restrict parameter was added.
+   
+  
+ 
+
+   
+  
+ 
 
 
 

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

2005-04-06 Thread Jakub Vrana
vrana   Wed Apr  6 09:23:06 2005 EDT

  Modified files:  
/phpdoc/en/reference/network/functions  ip2long.xml 
  Log:
  Returns false for 255.255.255.255 only in PHP 5 <= 5.0.2 (bug #29737)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/ip2long.xml?r1=1.13&r2=1.14&ty=u
Index: phpdoc/en/reference/network/functions/ip2long.xml
diff -u phpdoc/en/reference/network/functions/ip2long.xml:1.13 
phpdoc/en/reference/network/functions/ip2long.xml:1.14
--- phpdoc/en/reference/network/functions/ip2long.xml:1.13  Mon Aug 16 
09:15:22 2004
+++ phpdoc/en/reference/network/functions/ip2long.xml   Wed Apr  6 09:23:05 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -99,8 +99,9 @@
 
 
  
-  ip2long will return -1 (PHP 4) or
-  &false; (PHP 5) for the IP 255.255.255.255.
+  ip2long will return &false; for the IP
+  255.255.255.255 in PHP 5 <= 5.0.2. It was fixed in
+  PHP 5.0.3 where it returns -1 (same as PHP 4).
  
 
 


Re: [PHP-DOC] Re: openjade/opensp with cygwin

2005-04-06 Thread Nuno Lopes
Where is openjade in that structure? devel/openjade?
text/openjade and text/opensp
Good. Updated the howto, and removed the references to phpdoc-tools. If
you have any more suggestion, or corrections to that part of the howto (or
any other part whatsoever :), feel free to step up.
Thanks for your active participation in cleaning this stuff up, it was
much needed. I hope others will also find this solution working around,
especially now that two of you confirmed that this solution works.
Goba

Nop, it doesn't work...
The file-entities file is being created with window style paths. I've 
replaced them with cygwin paths and cygwin's openjade has worked.

The file entities script is a mess, so I'll need some time to get it fixed..
Nuno 


Re: [PHP-DOC] Re: Current build is broken

2005-04-06 Thread Nuno Lopes
/usr/local/bin/openjade:././dsssl/docbook/html/dblink.dsl:203:1:E: XRef
LinkEnd to missing ID 'function.dom-domimplementation-construct'

You did it imho :) cvs up en/reference/dom/functions/ and start a new 
build.
No that's with latest cvs, every day for the last few days...  Just try a 
'make test'...

Chris
You probably need to do a ./configure
Nuno 


[PHP-DOC] #32607 [NEW]: path changes in windows

2005-04-06 Thread mark at seriti dot com
From: mark at seriti dot com
Operating system: windows 2000
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  path changes in windows

Description:

At last I have installed PHP with Apache 2 on windows 2000

This was after a two day wild goose chase involving php.ini not being
read, dll's not loading, the include_path variable not being recognised
for PEAR extensions. 

Anyhow I learnt two things that I hope will save someone else the pain i
have been through.

1.) If PHP does not find PHP.INI it uses hard coded default values that
work fine until you install PEAR extensions and need to change the
"Include_path" varaiablethen your troubles begin unless you knew about
2.) below

2.) To keep PHP files in a separate directory you must add "C:\PHP" TO
YOUR PATH STATEMENT (Control panel, system, advances, environmental
variables, system variables, select path and edit) AND REBOOT THE MACHINE
OTHERWISE THE PATH VARIABLE DOES NOT UPDATE.

The install.txt urges a manual install but neglects to mention the REBOOT
requirement for the PATH statement to take effect. A minor omission but
what a lot of pain it caused me.


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


[PHP-DOC] Switching the howto to doc.php.net (was Re: [PHP-DOC] Contributing)

2005-04-06 Thread Mehdi Achour
Gabor Hojtsy wrote:
>> 1) I don't know how to update the HOWTO on php.net andthis was
>> brought up once, summary: wait for docweb
>> 2) Nobody knows when the upcoming phpdocweb site, codenamed
>>"docweb", will be online. It however is where the
>>updated php doc HOWTO will eventually always live.
>>* http://doc.php.net/php/dochowto/
> 
> 
> IMHO the doc howto at doc.php.net is supposed to be up to date. If not,
> it should be added to the cronjobs. If this is handled, the dochowto at
> php.net should be removed completely, and a redirection should be put in
> place to the doc site. Doc.php.net also should host a howto download
> file somewhere for those, who have modem access, so they can get the
> howto for offline browsing.

Now that http://doc.php.net/php/dochowto/ updates weekly and given the fact
that we don't propose a downloadable format for the howto on www.php.net,
why don't we switch the URLs ?

Mehdi


[PHP-DOC] cvs: phpdoc /en/reference/yaz/functions yaz-connect.xml yaz-record.xml yaz-scan.xml yaz-search.xml yaz-set-option.xml yaz-wait.xml

2005-04-06 Thread Mehdi Achour
didou   Wed Apr  6 07:55:03 2005 EDT

  Modified files:  
/phpdoc/en/reference/yaz/functions  yaz-connect.xml yaz-record.xml 
yaz-scan.xml yaz-search.xml 
yaz-set-option.xml yaz-wait.xml 
  Log:
  Switch the rest of docs and remove a useless para
  http://cvs.php.net/diff.php/phpdoc/en/reference/yaz/functions/yaz-connect.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/yaz/functions/yaz-connect.xml
diff -u phpdoc/en/reference/yaz/functions/yaz-connect.xml:1.11 
phpdoc/en/reference/yaz/functions/yaz-connect.xml:1.12
--- phpdoc/en/reference/yaz/functions/yaz-connect.xml:1.11  Tue Apr  5 
12:18:39 2005
+++ phpdoc/en/reference/yaz/functions/yaz-connect.xml   Wed Apr  6 07:55:00 2005
@@ -1,5 +1,5 @@
 
-
+
 
  
   yaz_connect
@@ -25,14 +25,12 @@
a connection  - it merely prepares a connect to be performed later when
yaz_wait is called.
   
-  
-   
-
- The YAZ proxy is a
- freely available Z39.50 proxy.
-
-   
-  
+  
+   
+The YAZ proxy is a
+freely available Z39.50 proxy.
+   
+  
  
  
   &reftitle.parameters;
http://cvs.php.net/diff.php/phpdoc/en/reference/yaz/functions/yaz-record.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/yaz/functions/yaz-record.xml
diff -u phpdoc/en/reference/yaz/functions/yaz-record.xml:1.8 
phpdoc/en/reference/yaz/functions/yaz-record.xml:1.9
--- phpdoc/en/reference/yaz/functions/yaz-record.xml:1.8Tue Apr  5 
12:17:59 2005
+++ phpdoc/en/reference/yaz/functions/yaz-record.xmlWed Apr  6 07:55:00 2005
@@ -1,12 +1,12 @@
 
-
+
 
  
   yaz_record
   Returns a record
  
- 
-  Description
+ 
+  &reftitle.description;
   
stringyaz_record
resourceid
@@ -14,180 +14,212 @@
stringtype
   
   
-   Returns the record at position pos or an empty
-   string if no record exists at the given position.
-  
-  
The yaz_record function inspects a record in the
current result set at the position specified by parameter
-   pos. If no database record exists at the given
-   position an empty string is returned. 
+   pos. 
   
+ 
+ 
+  &reftitle.parameters;
   
-   Record positions in a result set are numbered 1, 2, ... $hits where
-   $hits is the count returned by yaz_hits.
+   
+
+ id
+ 
+  
+   The connection resource returned by yaz_connect.
+  
+ 
+
+
+ pos
+ 
+  
+   The record position. Records positions in a result set are numbered 1,
+   2, ... $hits where $hits is the count returned by 
yaz_hits.
+  
+ 
+
+
+ type
+ 
+  
+   The type specifies the form of the
+   returned record.
+  
+  
+   
+It is the application which is responsible for actually
+ensuring that the records are returned from the Z39.50/SRW server
+in the proper format. The type given only specifies a conversion
+to take place on the client side (in PHP/YAZ).
+   
+  
+  
+   Besides conversion of the transfer record to a string/array, PHP/YAZ
+   it is also possible to perform a character set conversion of the
+   record. Especially for USMARC/MARC21 that is recommended since
+   these are typically returned in the character set MARC-8 that is
+   not supported by browsers, etc. To specify a conversion, add
+   ; charset=from,
+   to where
+   from is the original character set 
+   of the record and to is the resulting 
character
+   set (as seen by PHP).
+  
+  
+   
+string
+
+ 
+  The record is returned as a string for simple display.
+  In this mode, all MARC records are converted to a line-by-line format
+  since ISO2709 is hardly readable.
+  XML records and SUTRS are returned in their original format.
+  GRS-1 are returned in a (ugly) line-by-line format.
+ 
+ 
+  This format is suitable if records are to be displayed in a quick
+  way - for debugging - or because it is not feasible to perform
+  proper display.
+ 
+
+   
+   
+xml
+
+ 
+  The record is returned as an XML string if possible.
+  In this mode, all MARC records are converted to 
+  MARCXML.
+  XML records and SUTRS are returned in their original format.
+  GRS-1 is not supported.
+ 
+ 
+  This format is similar to string except that
+  MARC records are converted to MARCXML
+ 
+ 
+  This format is suitable if records are processed by an XML parser
+  or XSLT processor afterwards.
+ 
+
+   
+   
+raw
+
+ 
+  The record is returned as a string in its original form.
+  This type is suitable for MARC, XML and SUTRS. It does not
+  work for GRS-1.
+ 
+ 
+

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

2005-04-06 Thread belikoviv at is dot lg dot ua
 ID:   29737
 User updated by:  belikoviv at is dot lg dot ua
 Reported By:  belikoviv at is dot lg dot ua
-Status:   Closed
+Status:   Open
-Bug Type: Network related
+Bug Type: Documentation problem
 Operating System: Windows 2000 SP4; Fedora Core 2
 PHP Version:  5.0.0
 New Comment:

Function ip2long() fixed long time ago, but now I see incorrect note in
documentation (at bottom of the chapter):

"Note:  ip2long() will return -1 (PHP 4) or FALSE (PHP 5) for the IP
255.255.255.255"

This is incorrect. ip2long returns -1 in both PHP4 and PHP5 for IP
255.255.255.255. Value "-1" is _correct_ value for 255.255.255.255, so
that note must be deleted from documentation. Note about PHP4 is exist
near the top of chapter.


Previous Comments:


[2004-08-19 18:44:43] [EMAIL PROTECTED]

Be patient, Win32 snaps are not ready yet.
Latest PHP5 win32 snapshot was built on: Aug 19, 2004 08:30 GMT.



[2004-08-19 18:18:25] belikoviv at is dot lg dot ua

Sorry, but problem not fixed - I try php5-win32-latest.zip and
php5.0-win32-200408190830.zip. Both snapshots return FALSE on address
255.255.255.255.



[2004-08-19 16:04:35] [EMAIL PROTECTED]

Fixed in CVS, thanks.



[2004-08-19 16:04:11] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2004-08-19 15:57:42] belikoviv at is dot lg dot ua

Since version 5.0 ip2long returns FALSE on invalid address. It is
documented, and it is correct.

But ip2long returns FALSE on 255.255.255.255 - it is _not_ correct,
because 255.255.255.255 is _valid_ address.

Documentation says that ip2long returns -1 on 255.255.255.255 - it is
_correct_, because unsigned 0x is signed -1.

Unfortunatelly, I cannot fix this error by myself...



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29737

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


Re: [PHP-DOC] cvs: phpdoc /en/language oop.xml

2005-04-06 Thread Jakub Vrana
Derick Rethans wrote:
> Why did you remove PHP 3 stuff?

sniper said it in http://bugs.php.net/bug.php?id=22253 . PHP 3 is old
and behaves nearly same as PHP 4 in constructors.

Jakub Vrana


Re: [PHP-DOC] cvs: phpdoc /en/language oop.xml

2005-04-06 Thread Derick Rethans
On Wed, 6 Apr 2005, Jakub Vrana wrote:

> vrana Wed Apr  6 05:10:50 2005 EDT
> 
>   Modified files:  
> /phpdoc/en/language   oop.xml 
>   Log:
>   Constructors - remove PHP 3 stuff, fix description of constructors 
> inherited from parent class (bug #22253)

Why did you remove PHP 3 stuff?

Derick

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


[PHP-DOC] cvs: phpdoc /en/language oop.xml

2005-04-06 Thread Jakub Vrana
vrana   Wed Apr  6 05:10:50 2005 EDT

  Modified files:  
/phpdoc/en/language oop.xml 
  Log:
  Constructors - remove PHP 3 stuff, fix description of constructors inherited 
from parent class (bug #22253)
  
http://cvs.php.net/diff.php/phpdoc/en/language/oop.xml?r1=1.61&r2=1.62&ty=u
Index: phpdoc/en/language/oop.xml
diff -u phpdoc/en/language/oop.xml:1.61 phpdoc/en/language/oop.xml:1.62
--- phpdoc/en/language/oop.xml:1.61 Wed Mar  9 06:40:59 2005
+++ phpdoc/en/language/oop.xml  Wed Apr  6 05:10:49 2005
@@ -1,5 +1,5 @@
 
-
+
  
   Classes and Objects (PHP 4)
 
@@ -389,28 +389,19 @@
   
Constructors
 
-   
-
- In PHP 3 and PHP 4 constructors behave differently. The PHP 4
- semantics are strongly preferred.
-
-   
-

 Constructors are functions in a class that are automatically
 called when you create a new instance of a class with
-new. In PHP 3, a
-function becomes a constructor when it has the same name as 
-the class. In PHP 4, a function becomes a constructor, when
-it has the same name as the class it is defined in - the
-difference is subtle, but crucial (see below).
+new. A function becomes a constructor, when
+it has the same name as the class. If a class
+has no constructor, the constructor of the base class is being
+called, if it exists.

  

 
 
@@ -460,51 +448,6 @@
 @new.

 
-   
-
- In PHP 3, derived classes and constructors have a number of
- limitations. The following examples should be read carefully
- to understand these limitations.
- 
-   
-   
-   
-
-
-
-   
-
-   
-In PHP 3, no constructor is being called in the above example.
-The rule in PHP 3 is: 'A constructor is a function of the same
-name as the class.'. The name of the class is B, and there is
-no function called B() in class B. Nothing happens.
-   
-   
-   
-This is fixed in PHP 4 by introducing another rule: If a class
-has no constructor, the constructor of the base class is being
-called, if it exists. The above example would have printed
-'I am the constructor of A.
' in PHP 4. - - @@ -539,43 +478,27 @@ -In PHP 3, the function B() in class A will suddenly become a +The function B() in class A will suddenly become a constructor in class B, although it was never intended to be. -The rule in PHP 3 is: 'A constructor is a function of the same -name as the class.'. PHP 3 does not care if the function is +PHP 4 does not care if the function is being defined in class B, or if it has been inherited. - -This is fixed in PHP 4 by modifying the rule to: 'A constructor -is a function of the same name as the class it is being defined -in.'. Thus in PHP 4, the class B would have no constructor function -of its own and the constructor of the base class would have been -called, printing 'I am the constructor of A.
'. - - - Neither PHP 3 nor PHP 4 call constructors of the base class + PHP 4 doesn't call constructors of the base class automatically from a constructor of a derived class. It is your responsibility to propagate the call to constructors upstream where appropriate. - - - There are no destructors in PHP 3 or PHP 4. You may use - register_shutdown_function instead - to simulate most effects of destructors. - - - Destructors are functions that are called automatically when an object is destroyed, either with unset or by simply going out of scope. There are no destructors -in PHP. +in PHP. You may use register_shutdown_function +instead to simulate most effects of destructors.

[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-close.xml pg-connection-status.xml pg-fetch-all.xml pg-fetch-array.xml pg-fetch-assoc.xml pg-fetch-object.xml pg-fetch-result.xml pg-fetch-row.xm

2005-04-06 Thread Christopher Kings-Lynne
chriskl Wed Apr  6 05:04:50 2005 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-close.xml 
pg-connection-status.xml 
pg-fetch-all.xml 
pg-fetch-array.xml 
pg-fetch-assoc.xml 
pg-fetch-object.xml 
pg-fetch-result.xml 
pg-fetch-row.xml 
pg-lo-seek.xml 
pg-result-error-field.xml 
pg-result-status.xml 
pg-set-error-verbosity.xml 
pg-transaction-status.xml 
  Log:
  More work on updating pgsql docs.  Constants tagged as constants.  Use global 
entities when appropriate.  All pg_fetch_* functions done.  pg_fetch_object() 
prototype fixed to match CVS.
  http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-close.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-close.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-close.xml:1.11 
phpdoc/en/reference/pgsql/functions/pg-close.xml:1.12
--- phpdoc/en/reference/pgsql/functions/pg-close.xml:1.11   Tue Apr  5 
04:56:08 2005
+++ phpdoc/en/reference/pgsql/functions/pg-close.xmlWed Apr  6 05:04:49 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  
@@ -53,7 +53,7 @@
  
   &reftitle.returnvalues;
   
-   &true; on success, &false; on failure.
+   &return.success;
   
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-connection-status.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-connection-status.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-connection-status.xml:1.8 
phpdoc/en/reference/pgsql/functions/pg-connection-status.xml:1.9
--- phpdoc/en/reference/pgsql/functions/pg-connection-status.xml:1.8Fri Mar 
11 11:03:25 2005
+++ phpdoc/en/reference/pgsql/functions/pg-connection-status.xmlWed Apr 
 6 05:04:49 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  
@@ -17,8 +17,8 @@
   
   
pg_connection_status returns a connection status. 
-   Possible statuses are PGSQL_CONNECTION_OK and
-   PGSQL_CONNECTION_BAD. The return value 0 as
+   Possible statuses are PGSQL_CONNECTION_OK and
+   PGSQL_CONNECTION_BAD. The return value 0 as
integer indicates a valid connection.
   
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.7 
phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.7Fri Mar 11 
11:03:25 2005
+++ phpdoc/en/reference/pgsql/functions/pg-fetch-all.xmlWed Apr  6 
05:04:49 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  
@@ -15,12 +15,41 @@
   
   
pg_fetch_all returns an array that
-   contains all rows (tuples/records) in result resource. It returns
-   &false;, if there are no rows.
+   contains all rows (records) in the result resource.
   
   &database.fetch-null;
  
 
+ 
+  &reftitle.parameters;
+  
+   
+
+ result
+ 
+  
+   PostgreSQL query result resource, returned by 
pg_query,
+   pg_query_params or pg_execute
+   (among others).
+  
+ 
+
+   
+  
+ 
+
+ 
+  &reftitle.returnvalues;
+  
+   An array with all rows in the result.  Each row is an array
+   of field values indexed by field name.
+  
+  
+   &false; is returned if there are no rows in the result, or on any
+   other error.
+  
+ 
+ 
  
   &reftitle.examples;
   
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-fetch-array.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-fetch-array.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-fetch-array.xml:1.12 
phpdoc/en/reference/pgsql/functions/pg-fetch-array.xml:1.13
--- phpdoc/en/reference/pgsql/functions/pg-fetch-array.xml:1.12 Fri Mar 11 
11:03:25 2005
+++ phpdoc/en/reference/pgsql/functions/pg-fetch-array.xml  Wed Apr  6 
05:04:49 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  
@@ -17,52 +17,92 @@
   
   
pg_fetch_array returns an array that
-   corresponds to the fetched row (tuples/records). It returns
-   &false;, if there are no more rows.
+   corresponds to the fetched row (record).
   
   
pg_fetch_array is an extended version of
pg_fetch_row.  In addition to storing the
-   data in the numeric indices (field index) to the result array, it
-   also stores the data in associative indices (field name) by
-   default.
+   data in the numeric indices (field number) to the result array, it
+   can also store the data using associative indices (

Re: [PHP-DOC] cvs: phpdoc /en/reference/calendar/functions cal-info.xml

2005-04-06 Thread David Mytton
Ahh, perhaps I should have read that README also... *printed*
-- 
Regards,

David Mytton
http://www.olate.co.uk


[PHP-DOC] #30908 [Opn->Csd]: How to use NULLS in mysqli prepared statements

2005-04-06 Thread vrana
 ID:   30908
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phoeniks2k at mail dot ru
-Status:   Open
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: All
 PHP Version:  5.0.2
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

"It's not allowed to compare marker with NULL by "? IS NULL" too."


Previous Comments:


[2005-04-05 19:43:53] phoeniks2k at mail dot ru

Here placeholder is *NOT* an indentifier. Not a column name, but a
variable/ Here is a rewritten example

prepare is smth like SET @BOUND_VAR = ?;
bind sets variable to NULL
$code = NULL;
$stmt->bind_param('i', $code);

SELECT id, val 
  FROM table_name 
 WHERE id = 1 
   AND (val = @BOUND_VAR OR @BOUND_VAR IS NULL)

Now  @BOUND_VAR is threated as 0 instead of NULL. that's incorrect



[2005-04-05 16:10:50] [EMAIL PROTECTED]

It is already documented:

mysqli_prepare:
"However, markers are not allowed for identifiers (such as table or
column names), in the select list that names the columns to be returned
by a SELECT statement), or to specify both operands of a binary operator
such as the =  equal sign."



[2004-11-29 15:56:52] phoeniks2k at mail dot ru

Copy-paste sucks )))
But query
SELECT id, val FROM table_name WHERE id = 1 AND (val = NULL OR NULL IS
NULL)
returns 2 rowa with NULL as val AND 2 as val )))



[2004-11-29 15:54:04] phoeniks2k at mail dot ru

Sorry I misused a little.

Troubles are not in INSERTs, but in SELECTS
prepare("SELECT id, val FROM table_name WHERE id = ?
AND (val = ? OR ? IS NULL)");
$stmt->bind_param('iss', $code, $language, $language);
//$stmt->bind_param('i', $code);



$stmt->execute();
$stmt->bind_result($col1, $col2);

while ($stmt->fetch()) {
  printf("%s %s\n", $col1, $col2);
}

$stmt->close();
$mysqli->close();
?>

Table contains data
+++
| id | val|
+++
|  1 | 2  |
|  1 | [NULL] |
+++

The statement above returns 0 rows.

But query
SELECT id, val FROM table_name WHERE id = 1 AND (val = NULL OR NULL IS
NULL)
returns 1 row with NULL as val (as it should realy do)

AND

SELECT id, val FROM table_name WHERE id = 1 AND (val = 2 OR 2 IS NULL)
returns 1 row with 2 as val (as it should realy do)



[2004-11-26 15:44:11] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

 



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30908

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


[PHP-DOC] cvs: phpdoc /en/reference/mysqli/functions mysqli-prepare.xml

2005-04-06 Thread Jakub Vrana
vrana   Wed Apr  6 04:49:32 2005 EDT

  Modified files:  
/phpdoc/en/reference/mysqli/functions   mysqli-prepare.xml 
  Log:
  Marker is not allowed with IS NULL (bug #30908)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/mysqli/functions/mysqli-prepare.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/mysqli/functions/mysqli-prepare.xml
diff -u phpdoc/en/reference/mysqli/functions/mysqli-prepare.xml:1.9 
phpdoc/en/reference/mysqli/functions/mysqli-prepare.xml:1.10
--- phpdoc/en/reference/mysqli/functions/mysqli-prepare.xml:1.9 Tue Apr  5 
10:11:47 2005
+++ phpdoc/en/reference/mysqli/functions/mysqli-prepare.xml Wed Apr  6 
04:49:29 2005
@@ -1,5 +1,5 @@
 
-
+
   

 mysqli_prepare
@@ -52,7 +52,9 @@
in the select list that names the columns to be returned by a SELECT 
statement,
or to specify both operands of a binary operator such as the 
=
equal sign. The latter restriction is necessary because it would be 
impossible
-   to determine the parameter type. In general, parameters are legal only 
in Data
+   to determine the parameter type. It's not allowed to compare marker
+   with NULL by ? IS NULL too.
+   In general, parameters are legal only in Data
Manipulation Languange (DML) statements, and not in Data Defination 
Language
(DDL) statements. 
   


[PHP-DOC] Re: Current build is broken

2005-04-06 Thread Christopher Kings-Lynne
/usr/local/bin/openjade:././dsssl/docbook/html/dblink.dsl:203:1:E: XRef
LinkEnd to missing ID 'function.dom-domimplementation-construct'

You did it imho :) cvs up en/reference/dom/functions/ and start a new build.
No that's with latest cvs, every day for the last few days...  Just try 
a 'make test'...

Chris


Re: [PHP-DOC] Translation and new doc-style

2005-04-06 Thread Mehdi Achour
Gabor Hojtsy wrote:
>>  > For translators, a diff should be as small as possible.
>>
>> Why?
>>
>> If I want to update pg-num-rows.xml in the de-tree, I see have two
>> options:
>>
>> first:
>> remove whitespaces, change the doc-skel and then update the
>> translation. This means redoing everything Christopher has already
>> done in the en-pg-num-rows.xml.
>>
>> second:
>> copy the en-file with the new structure and replace the english text
>> with the german text or translate the updates.
>>
>> In both cases I don't care how big or small the diff is because I have
>> to change the whole file.
> 
> 
> I know that at least the Hungarian translators do that:
> 
>  - look up diff of English file (from revcheck)
>  - change the Hungarian file according to the diff
> 
> If the diff contains irrelevant changes (ws), it is getting harder. If
> ws is done in a separate commit, it can be steped over (with incremental
> diffing).

That's one of the points. The other one is to make it easier for us to
quickly review the commits on this list. (I personnaly take a look at
every commit).

didou
> 
> Goba


Re: [PHP-DOC] Translation and new doc-style

2005-04-06 Thread Mehdi Achour
Christopher Kings-Lynne wrote:
>> first:
>> remove whitespaces, change the doc-skel and then update the
>> translation. This means redoing everything Christopher has already
>> done in the en-pg-num-rows.xml.
> 
> 
> I'm actually doing a full rewrite of the PostgreSQL docs, so I'm afraid
> lots of translation might be required anyway :(

Never by sorry when you enhance the english manual (tm), try just to be
translator friendly.

didou


[PHP-DOC] Re: Current build is broken

2005-04-06 Thread Mehdi Achour
Christopher Kings-Lynne wrote:
> Someone made a mistake:
> 
> /usr/local/bin/openjade:././dsssl/docbook/html/dblink.dsl:203:1:E: XRef
> LinkEnd to missing ID 'function.dom-domimplementation-construct'

You did it imho :) cvs up en/reference/dom/functions/ and start a new build.

Mehdi


[PHP-DOC] cvs: phpdoc /en/reference/calendar/functions cal-info.xml

2005-04-06 Thread Jakub Vrana
vrana   Wed Apr  6 03:57:26 2005 EDT

  Modified files:  
/phpdoc/en/reference/calendar/functions cal-info.xml 
  Log:
   (thanks to Didou)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/calendar/functions/cal-info.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/calendar/functions/cal-info.xml
diff -u phpdoc/en/reference/calendar/functions/cal-info.xml:1.12 
phpdoc/en/reference/calendar/functions/cal-info.xml:1.13
--- phpdoc/en/reference/calendar/functions/cal-info.xml:1.12Wed Apr  6 
00:56:23 2005
+++ phpdoc/en/reference/calendar/functions/cal-info.xml Wed Apr  6 03:57:26 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -25,22 +25,22 @@
  
   

-0 or CAL_GREGORIAN - Gregorian Calendar
+0 or CAL_GREGORIAN - Gregorian Calendar

   
   

-1 or CAL_JULIAN - Julian Calendar
+1 or CAL_JULIAN - Julian Calendar

   
   

-2 or CAL_JEWISH - Jewish Calendar
+2 or CAL_JEWISH - Jewish Calendar

   
   

-3 or CAL_FRENCH - French Revolutionary Calendar
+3 or CAL_FRENCH - French Revolutionary Calendar

   
  


[PHP-DOC] Re: cvs: phpdoc /en/reference/calendar/functions cal-info.xml

2005-04-06 Thread Jakub Vrana
Mehdi Achour wrote:
> So use foo ? :)

Sure. I promise I will print README/"some popular tags and entities"
and use it :-).

Jakub Vrana


[PHP-DOC] Re: cvs: phpdoc /en/reference/calendar/functions cal-info.xml

2005-04-06 Thread Mehdi Achour
Jakub Vrana wrote:
> vrana Wed Apr  6 00:56:24 2005 EDT
> 
>   Modified files:  
> /phpdoc/en/reference/calendar/functions   cal-info.xml 
>   Log:
>   They are constants, not strings

So use foo ? :)

didou