[PHP-DOC] #26429 [Opn]: Documentation for $_SERVER["SCRIPT_FILENAME"] incorrect

2003-11-26 Thread skissane at ics dot mq dot edu dot au
 ID:   26429
 User updated by:  skissane at ics dot mq dot edu dot au
 Reported By:  skissane at ics dot mq dot edu dot au
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.3.4
 New Comment:

rasmus wrote:
"The docs should be modified to reflect the fact that all server
variables except PHP_SELF, argc and argv are set by the web server and
PHP has absolutely no control over their values"

Not true -- As I said, I am using PHP-CLI. No webserver involved at
all. Of course PHP has control over them all when running using the CLI
sapi (excluding of course any brought in from the environment...)


Previous Comments:


[2003-11-26 23:55:14] [EMAIL PROTECTED]

The docs should be modified to reflect the fact that all server
variables except PHP_SELF, argc and argv are set by the web server and
PHP has absolutely no control over their values.  While Apache sets
them to one thing, another server may set them to another, and there
may be differences between the server module version and the CGI
interface to any of these web servers.



[2003-11-26 23:50:28] skissane at ics dot mq dot edu dot au

Description:

According to the documentation:
'SCRIPT_FILENAME'
The absolute pathname of the currently executing script. 

But, when I do 'echo $_SERVER["SCRIPT_FILENAME"]', using PHP-CLI, I get
a pathname relative to the current directory.

So either the docs are wrong, or the code is buggy (suggest that
documented behaviour is more useful than actual behaviour, hence code
should be changed.)

(Despite what the form forced me to say above, I'm actually using
4.3.4RC1, not 4.3.4, but I hope it makes no difference. Apologies if it
does.)

Reproduce code:
---
Make a directory called foo, under $HOME.
Put this file as test.php in $HOME:
/foo/test.php

Actual result:
--
foo/test.php





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


[PHP-DOC] #26429 [Opn]: Documentation for $_SERVER["SCRIPT_FILENAME"] incorrect

2003-11-26 Thread rasmus
 ID:   26429
 Updated by:   [EMAIL PROTECTED]
 Reported By:  skissane at ics dot mq dot edu dot au
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.3.4
 New Comment:

The docs should be modified to reflect the fact that all server
variables except PHP_SELF, argc and argv are set by the web server and
PHP has absolutely no control over their values.  While Apache sets
them to one thing, another server may set them to another, and there
may be differences between the server module version and the CGI
interface to any of these web servers.


Previous Comments:


[2003-11-26 23:50:28] skissane at ics dot mq dot edu dot au

Description:

According to the documentation:
'SCRIPT_FILENAME'
The absolute pathname of the currently executing script. 

But, when I do 'echo $_SERVER["SCRIPT_FILENAME"]', using PHP-CLI, I get
a pathname relative to the current directory.

So either the docs are wrong, or the code is buggy (suggest that
documented behaviour is more useful than actual behaviour, hence code
should be changed.)

(Despite what the form forced me to say above, I'm actually using
4.3.4RC1, not 4.3.4, but I hope it makes no difference. Apologies if it
does.)

Reproduce code:
---
Make a directory called foo, under $HOME.
Put this file as test.php in $HOME:
/foo/test.php

Actual result:
--
foo/test.php





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


[PHP-DOC] #26429 [NEW]: Documentation for $_SERVER["SCRIPT_FILENAME"] incorrect

2003-11-26 Thread skissane at ics dot mq dot edu dot au
From: skissane at ics dot mq dot edu dot au
Operating system: Linux
PHP version:  4.3.4
PHP Bug Type: Documentation problem
Bug description:  Documentation for $_SERVER["SCRIPT_FILENAME"] incorrect

Description:

According to the documentation:
'SCRIPT_FILENAME'
The absolute pathname of the currently executing script. 

But, when I do 'echo $_SERVER["SCRIPT_FILENAME"]', using PHP-CLI, I get a
pathname relative to the current directory.

So either the docs are wrong, or the code is buggy (suggest that
documented behaviour is more useful than actual behaviour, hence code
should be changed.)

(Despite what the form forced me to say above, I'm actually using
4.3.4RC1, not 4.3.4, but I hope it makes no difference. Apologies if it
does.)

Reproduce code:
---
Make a directory called foo, under $HOME.
Put this file as test.php in $HOME:
/foo/test.php

Actual result:
--
foo/test.php

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


[PHP-DOC] cvs: phpdoc /en/reference/tidy/functions tidy-node-attributes.xml tidy-node-children.xml tidy-node-get-attr.xml tidy-node-get-nodes.xml tidy-node-has-children.xml tidy-node-has-siblings.xml tidy-node-is-asp.xml tidy-node-is-comment.xml tidy-node-is-html.xml tidy-node-is-jsp.xml tidy-node-is-jste.xml tidy-node-is-text.xml tidy-node-is-xhtml.xml tidy-node-is-xml.xml tidy-node-next.xml tidy-node-prev.xml tidy-node-tidy-node.xml tidy-node::attributes.xml tidy-node::children.xml tidy-node::get-attr.xml tidy-node::get-nodes.xml tidy-node::has-children.xml tidy-node::has-siblings.xml tidy-node::is-asp.xml tidy-node::is-comment.xml tidy-node::is-html.xml tidy-node::is-jsp.xml tidy-node::is-jste.xml tidy-node::is-text.xml tidy-node::is-xhtml.xml tidy-node::is-xml.xml tidy-node::next.xml tidy-node::prev.xml tidy-node::tidy-node.xml

2003-11-26 Thread Friedhelm Betz
betzWed Nov 26 20:14:10 2003 EDT

  Added files: 
/phpdoc/en/reference/tidy/functions tidy-node-attributes.xml 
tidy-node-children.xml 
tidy-node-get-attr.xml 
tidy-node-get-nodes.xml 
tidy-node-has-children.xml 
tidy-node-has-siblings.xml 
tidy-node-is-asp.xml 
tidy-node-is-comment.xml 
tidy-node-is-html.xml 
tidy-node-is-jsp.xml 
tidy-node-is-jste.xml 
tidy-node-is-text.xml 
tidy-node-is-xhtml.xml 
tidy-node-is-xml.xml 
tidy-node-next.xml 
tidy-node-prev.xml 
tidy-node-tidy-node.xml 

  Removed files:   
/phpdoc/en/reference/tidy/functions tidy-node::attributes.xml 
tidy-node::children.xml 
tidy-node::get-attr.xml 
tidy-node::get-nodes.xml 
tidy-node::has-children.xml 
tidy-node::has-siblings.xml 
tidy-node::is-asp.xml 
tidy-node::is-comment.xml 
tidy-node::is-html.xml 
tidy-node::is-jsp.xml 
tidy-node::is-jste.xml 
tidy-node::is-text.xml 
tidy-node::is-xhtml.xml 
tidy-node::is-xml.xml 
tidy-node::next.xml 
tidy-node::prev.xml 
tidy-node::tidy-node.xml 
  Log:
  tidy func names cleanup
  
  
Index: phpdoc/en/reference/tidy/functions/tidy-node-attributes.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-attributes.xml


  
   
tidy_node->attributes

 Returns an array of attribute objects for node

   
   
Description

 arraytidy_node->attributes
 


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-children.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-children.xml


  
   
tidy_node->children

 Returns an array of child nodes

   
   
Description

 arraytidy_node->children
 


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-get-attr.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-get-attr.xml


  
   
tidy_node->get_attr

 Return the attribute with the provided attribute id

   
   
Description

 tidy_attrtidy_node->get_attr
 intattrib_id


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-get-nodes.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-get-nodes.xml


  
   
tidy_node->get_nodes

 Return an array of nodes under this node with the specified id

   
   
Description

 arraytidy_node->get_nodes
 intnode_id


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-has-children.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-has-children.xml


  
   
tidy_node->has_children

 Returns true if this node has children

   
   
Description

 booltidy_node->has_children
 


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-has-siblings.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-has-siblings.xml


  
   
tidy_node->has_siblings

 Returns true if this node has siblings

   
   
Description

 booltidy_node->has_siblings
 


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-is-asp.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-is-asp.xml


  
   
tidy_node->is_asp

 Returns true if this node is ASP

   
   
Description

 booltidy_node->is_asp
 


 &warn.undocumented.func;

   
  



Index: phpdoc/en/reference/tidy/functions/tidy-node-is-comment.xml
+++ phpdoc/en/reference/tidy/functions/tidy-node-is-comment.xml


  
   
tidy_node->is_comment

 Returns true if this node represents a comment

   
   
Description

 booltidy_node->is_comment
 

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

2003-11-26 Thread Friedhelm Betz
betzWed Nov 26 20:12:34 2003 EDT

  Modified files:  
/phpdoc/en  language-snippets.ent 
  Log:
  cosmetic restructure
  
  
Index: phpdoc/en/language-snippets.ent
diff -u phpdoc/en/language-snippets.ent:1.59 phpdoc/en/language-snippets.ent:1.60
--- phpdoc/en/language-snippets.ent:1.59Fri Nov  7 13:14:38 2003
+++ phpdoc/en/language-snippets.ent Wed Nov 26 20:12:34 2003
@@ -1,4 +1,4 @@
-
+
 
 This extension is
 EXPERIMENTAL. The behaviour of this extension --
@@ -166,6 +166,8 @@
 Here's a short explanation of
 the configuration directives.'>
 
+
+
 
 
 The behaviour of these functions is affected by settings in &php.ini;.
@@ -190,6 +192,21 @@
 been compiled into PHP or dynamically loaded at runtime.
 '>
 
+
+Introduction'>
+Requirements'>
+Installation'>
+Runtime Configuration'>
+Resource Types'>
+Predefined Constants'>
+Predefined Classes'>
+Examples'>
+See Also'>
+
+
+
+
  The windows version of PHP
 has built in support for this extension. You do not need to load any additional
 extension in order to use these functions.'>
@@ -212,18 +229,6 @@
 
 The optional parameter mode determines 
the unit length. If it is 0 or omitted the default unit as specified for the page is 
used. Otherwise the coordinates are measured in postscript points disregarding the 
current unit.'>
 
-
-Introduction'>
-Requirements'>
-Installation'>
-Runtime Configuration'>
-Resource Types'>
-Predefined Constants'>
-Predefined Classes'>
-Examples'>
-See Also'>
-
 
 When specifying a numerical IPv6 address
 (e.g. fe80::1) you must enclose the IP in square brackets.  For example,  
@@ -231,4 +236,3 @@
 
 IPv6 Support was added with PHP
 5.0.0 .'>
-


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

2003-11-26 Thread Friedhelm Betz
betzWed Nov 26 19:50:00 2003 EDT

  Modified files:  
/phpdoc/en/reference/apache/functions   apache-request-headers.xml 
apache-response-headers.xml 
getallheaders.xml virtual.xml 
  Log:
  linking to nsapi note
  
  
Index: phpdoc/en/reference/apache/functions/apache-request-headers.xml
diff -u phpdoc/en/reference/apache/functions/apache-request-headers.xml:1.3 
phpdoc/en/reference/apache/functions/apache-request-headers.xml:1.4
--- phpdoc/en/reference/apache/functions/apache-request-headers.xml:1.3 Tue Jul 15 
13:59:36 2003
+++ phpdoc/en/reference/apache/functions/apache-request-headers.xml Wed Nov 26 
19:50:00 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -51,13 +51,7 @@
   environment variables.
  
 
-
- 
-  From PHP 4.3.3 on you can use this function with the
-  NSAPI server module in Netscape/iPlanet/SunONE
-  webservers, too.
- 
-
+&reference.apache.note-nsapi-module;

   
 
Index: phpdoc/en/reference/apache/functions/apache-response-headers.xml
diff -u phpdoc/en/reference/apache/functions/apache-response-headers.xml:1.3 
phpdoc/en/reference/apache/functions/apache-response-headers.xml:1.4
--- phpdoc/en/reference/apache/functions/apache-response-headers.xml:1.3Tue 
Jul 15 13:59:36 2003
+++ phpdoc/en/reference/apache/functions/apache-response-headers.xmlWed Nov 26 
19:50:00 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -22,13 +22,7 @@
  See also getallheaders and
  headers_sent.
 
-
- 
-  From PHP 4.3.3 on you can use this function with the
-  NSAPI server module in Netscape/iPlanet/SunONE
-  webservers, too.
- 
-
+&reference.apache.note-nsapi-module;

   
 
Index: phpdoc/en/reference/apache/functions/getallheaders.xml
diff -u phpdoc/en/reference/apache/functions/getallheaders.xml:1.5 
phpdoc/en/reference/apache/functions/getallheaders.xml:1.6
--- phpdoc/en/reference/apache/functions/getallheaders.xml:1.5  Tue Jul 15 13:59:36 
2003
+++ phpdoc/en/reference/apache/functions/getallheaders.xml  Wed Nov 26 19:50:00 
2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -31,13 +31,7 @@
 
  See also apache_request_headers.
 
-
- 
-  From PHP 4.3.3 on you can use this function with the
-  NSAPI server module in Netscape/iPlanet/SunONE
-  webservers, too.
- 
-
+&reference.apache.note-nsapi-module;

   
 
Index: phpdoc/en/reference/apache/functions/virtual.xml
diff -u phpdoc/en/reference/apache/functions/virtual.xml:1.5 
phpdoc/en/reference/apache/functions/virtual.xml:1.6
--- phpdoc/en/reference/apache/functions/virtual.xml:1.5Tue Jul 15 13:59:36 
2003
+++ phpdoc/en/reference/apache/functions/virtual.xmlWed Nov 26 19:50:00 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -30,13 +30,7 @@
  However, it is typically better to use include or
  require if you need to include another PHP file.
 
-
- 
-  From PHP 4.3.3 on you can use this function with the
-  NSAPI server module in Netscape/iPlanet/SunONE
-  webservers, too.
- 
-
+&reference.apache.note-nsapi-module;

   
 


[PHP-DOC] cvs: phpdoc /en/reference/apache note-nsapi-module.xml

2003-11-26 Thread Friedhelm Betz
betzWed Nov 26 19:48:51 2003 EDT

  Added files: 
/phpdoc/en/reference/apache note-nsapi-module.xml 
  Log:
  note about available nsapi funcs
  
  

Index: phpdoc/en/reference/apache/note-nsapi-module.xml
+++ phpdoc/en/reference/apache/note-nsapi-module.xml



 
  From PHP 4.3.3 on you can use this function with the
  NSAPI server module in Netscape/iPlanet/SunONE
   webservers, too.
  
 
 



Re: [PHP-DOC] call by reference

2003-11-26 Thread Gabor Hojtsy
In light of the a recent bug with the run time call by reference
examples. I started going through and finding the examples that
have used the &$var syntax.
I was thinking, perhaps the proto should reflect that that
the parameter is passed by reference:
array getimagesize ( string filename [, array &imageinfo])

I can think of two solutions that could work:

Adding an attribute to the :
 imaginfo
With the common.xsl:

  
&
  
  

Or simply adding & the the paramater value.

Any comments on this?
I have not looked into this if this is valid DocBook syntax, but it 
would be nice if it would be. Also you need to modify the DSSSL sheets 
to, because most of the manuals are still generated via the DSSSL sheets 
(online HTML, downloadable HTML and CHMs).

Goba


Re: [PHP-DOC] tidy func name

2003-11-26 Thread Friedhelm Betz
> Just for my own knowledge, since I did write the extension and create
> the doc 'mess' to begin with -- what exactly are you going to do?

Replace the :: in the filenames with -
replace the :: in refentry id 's with -
replace the :: in refname and methodname with ->

where its opbivios for me, I'll change the returntype, for example
tidy_attrtidy_node::attributes
will become:
arrayrtidy_node->attributes

btw. its already ready ;-) for commit.

Friedhelm

> 
> John
> 
> (btw, go ahead and fix it now -- history isn't an issue really yet)
> 


-- 
--
Friedhelm Betz

NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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

2003-11-26 Thread Mehdi Achour
didou   Wed Nov 26 07:52:17 2003 EDT

  Modified files:  
/phpdoc/en/reference/dbase/functionsdbase-get-header-info.xml 
  Log:
  correcting the example
  
Index: phpdoc/en/reference/dbase/functions/dbase-get-header-info.xml
diff -u phpdoc/en/reference/dbase/functions/dbase-get-header-info.xml:1.2 
phpdoc/en/reference/dbase/functions/dbase-get-header-info.xml:1.3
--- phpdoc/en/reference/dbase/functions/dbase-get-header-info.xml:1.2   Wed Jul 16 
13:09:05 2003
+++ phpdoc/en/reference/dbase/functions/dbase-get-header-info.xml   Wed Nov 26 
07:52:17 2003
@@ -1,5 +1,5 @@
 
-
+
   

 dbase_get_header_info
@@ -100,7 +100,7 @@
 $db_path = "/tmp/test.dbf";
 
 // Open dbase file
-$dbh = dbase_open($dbname)
+$dbh = dbase_open($db_path)
 or die("Error! Could not open dbase database file '$db_path'.");
 
 // Get column information


[PHP-DOC] cvs: phpdoc /en/reference/dba/functions dba-handlers.xml

2003-11-26 Thread Mehdi Achour
didou   Wed Nov 26 07:40:34 2003 EDT

  Modified files:  
/phpdoc/en/reference/dba/functions  dba-handlers.xml 
  Log:
  typo
  
Index: phpdoc/en/reference/dba/functions/dba-handlers.xml
diff -u phpdoc/en/reference/dba/functions/dba-handlers.xml:1.2 
phpdoc/en/reference/dba/functions/dba-handlers.xml:1.3
--- phpdoc/en/reference/dba/functions/dba-handlers.xml:1.2  Wed Nov  6 01:36:37 
2002
+++ phpdoc/en/reference/dba/functions/dba-handlers.xml  Wed Nov 26 07:40:34 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -14,7 +14,7 @@
  
 
  dba_handlers returns an array with all handlers
- suppoerted by this extension.
+ supported by this extension.
 
 
  When the internal cdb library is used you will see 'cdb' and 'cdb_make'.


[PHP-DOC] tidy func name

2003-11-26 Thread Friedhelm Betz

Hi,

I am about to correct the 'mess'.
If nobody objects, I will simply rename the files in question and commit them.
Don't think history is such important for now.

Friedhelm


[PHP-DOC] #26421 [NEW]: Different prototype of openssl_csr_sign() function

2003-11-26 Thread spam at vrana dot cz
From: spam at vrana dot cz
Operating system: 
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  Different prototype of openssl_csr_sign() function

Description:

There is a different prototype of this function in source code (at least
in PHP 4.3.4):

resource openssl_csr_sign(mixed csr, mixed x509, mixed priv_key, long days
[, array config_args [, long serial]])

So you can also pass serial number of an issuing certificate as 6th
parameter.



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


Re: [PHP-DOC] call by reference

2003-11-26 Thread Mehdi Achour
Hi Curt,

* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):

array getimagesize ( string filename [, array &imageinfo])

I can think of two solutions that could work:

Adding an attribute to the :
imaginfo
...

Or simply adding & the the paramater value.


After looking through some of the function prototypes I see that
some have & directly in the prototype definition. So I assume
this is the current method, correct?
You are right, this is the way used right now for the documentation, but 
I would be +1 to use an attribute for the parameter.

Mehdi