[PHP-DOC] #39475 [Opn]: FTP and filesize()

2006-11-13 Thread j dot finlay at optusnet dot com dot au
 ID:   39475
 User updated by:  j dot finlay at optusnet dot com dot au
 Reported By:  j dot finlay at optusnet dot com dot au
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  Irrelevant
 New Comment:

I've resolved this issue by writing my own (I think, better) fix in
PHP, its here:
http://au3.php.net/manual/en/function.filesize.php#71098

But this does still not resolve the underlying issue on why its not
working for me.


Previous Comments:


[2006-11-13 21:17:23] j dot finlay at optusnet dot com dot au

[EMAIL PROTECTED]:~> php -v   
 
PHP 5.2.1-dev (cli) (built: Nov  2 2006 20:59:28)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
[EMAIL PROTECTED]:~> php -r "echo 
 filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"

Warning: filesize(): stat failed for
ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2 in Command line code
on line 2
[EMAIL PROTECTED]:~>



[2006-11-13 19:43:40] trickie at gmail dot com

Works for me:

PHP 5.2.1-dev CLI

Ubuntu 6.10

php -r "echo
filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"



[2006-11-12 07:04:36] j dot finlay at optusnet dot com dot au

Originally I thought this was HTTP *and* FTP related, however it seems
the manual only mentions FTP supporting stat() so for all intensive
purposes, change the URL in my example code to:

ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2

or something else on an FTP server. My apologies.



[2006-11-12 06:50:10] j dot finlay at optusnet dot com dot au

Changed summary from "HTTP/FTP and filesize()" to just "FTP and
filesize()".



[2006-11-12 06:49:19] j dot finlay at optusnet dot com dot au

Description:

According to the documentation, filesize() supports wrappers that also
support stat().

This seems to be false with both PHP 5.1.6, and 5.2.1-dev.

Unfortunately this function does not work as expected with FTP URLs.
See the reproducable code for an example.

However, the manual states that "As of PHP 5.0.0 this function can also
be used with some URL wrappers. Refer to Appendix M, List of Supported
Protocols/Wrappers for a listing of which wrappers support stat()
family of functionality."

>From the manual, in regards to "Appendix M, List of Supported
Protocols/Wrappers" in the "FTP and FTPS" section: "Supports stat() No
As of PHP 5.0.0: filesize(), filetype(), file_exists(), is_file(), and
is_dir() elements only. As of PHP 5.1.0: filemtime()."

Reproduce code:
---
http://au2.php.net/distributions/php-5.2.0.tar.bz2";)."\n";
?>

Expected result:

6789838

Actual result:
--
Warning: filesize(): stat failed for
http://au2.php.net/distributions/php-5.2.0.tar.bz2





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


[PHP-DOC] #39475 [Opn]: FTP and filesize()

2006-11-13 Thread j dot finlay at optusnet dot com dot au
 ID:   39475
 User updated by:  j dot finlay at optusnet dot com dot au
 Reported By:  j dot finlay at optusnet dot com dot au
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  Irrelevant
 New Comment:

[EMAIL PROTECTED]:~> php -v   
 
PHP 5.2.1-dev (cli) (built: Nov  2 2006 20:59:28)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
[EMAIL PROTECTED]:~> php -r "echo 
 filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"

Warning: filesize(): stat failed for
ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2 in Command line code
on line 2
[EMAIL PROTECTED]:~>


Previous Comments:


[2006-11-13 19:43:40] trickie at gmail dot com

Works for me:

PHP 5.2.1-dev CLI

Ubuntu 6.10

php -r "echo
filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"



[2006-11-12 07:04:36] j dot finlay at optusnet dot com dot au

Originally I thought this was HTTP *and* FTP related, however it seems
the manual only mentions FTP supporting stat() so for all intensive
purposes, change the URL in my example code to:

ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2

or something else on an FTP server. My apologies.



[2006-11-12 06:50:10] j dot finlay at optusnet dot com dot au

Changed summary from "HTTP/FTP and filesize()" to just "FTP and
filesize()".



[2006-11-12 06:49:19] j dot finlay at optusnet dot com dot au

Description:

According to the documentation, filesize() supports wrappers that also
support stat().

This seems to be false with both PHP 5.1.6, and 5.2.1-dev.

Unfortunately this function does not work as expected with FTP URLs.
See the reproducable code for an example.

However, the manual states that "As of PHP 5.0.0 this function can also
be used with some URL wrappers. Refer to Appendix M, List of Supported
Protocols/Wrappers for a listing of which wrappers support stat()
family of functionality."

>From the manual, in regards to "Appendix M, List of Supported
Protocols/Wrappers" in the "FTP and FTPS" section: "Supports stat() No
As of PHP 5.0.0: filesize(), filetype(), file_exists(), is_file(), and
is_dir() elements only. As of PHP 5.1.0: filemtime()."

Reproduce code:
---
http://au2.php.net/distributions/php-5.2.0.tar.bz2";)."\n";
?>

Expected result:

6789838

Actual result:
--
Warning: filesize(): stat failed for
http://au2.php.net/distributions/php-5.2.0.tar.bz2





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


[PHP-DOC] #39475 [Com]: FTP and filesize()

2006-11-13 Thread trickie at gmail dot com
 ID:   39475
 Comment by:   trickie at gmail dot com
 Reported By:  j dot finlay at optusnet dot com dot au
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  Irrelevant
 New Comment:

Works for me:

PHP 5.2.1-dev CLI

Ubuntu 6.10

php -r "echo
filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"


Previous Comments:


[2006-11-12 07:04:36] j dot finlay at optusnet dot com dot au

Originally I thought this was HTTP *and* FTP related, however it seems
the manual only mentions FTP supporting stat() so for all intensive
purposes, change the URL in my example code to:

ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2

or something else on an FTP server. My apologies.



[2006-11-12 06:50:10] j dot finlay at optusnet dot com dot au

Changed summary from "HTTP/FTP and filesize()" to just "FTP and
filesize()".



[2006-11-12 06:49:19] j dot finlay at optusnet dot com dot au

Description:

According to the documentation, filesize() supports wrappers that also
support stat().

This seems to be false with both PHP 5.1.6, and 5.2.1-dev.

Unfortunately this function does not work as expected with FTP URLs.
See the reproducable code for an example.

However, the manual states that "As of PHP 5.0.0 this function can also
be used with some URL wrappers. Refer to Appendix M, List of Supported
Protocols/Wrappers for a listing of which wrappers support stat()
family of functionality."

>From the manual, in regards to "Appendix M, List of Supported
Protocols/Wrappers" in the "FTP and FTPS" section: "Supports stat() No
As of PHP 5.0.0: filesize(), filetype(), file_exists(), is_file(), and
is_dir() elements only. As of PHP 5.1.0: filemtime()."

Reproduce code:
---
http://au2.php.net/distributions/php-5.2.0.tar.bz2";)."\n";
?>

Expected result:

6789838

Actual result:
--
Warning: filesize(): stat failed for
http://au2.php.net/distributions/php-5.2.0.tar.bz2





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


[PHP-DOC] #39501 [NEW]: Docs incorrectly explain the rules for naming variables and constants

2006-11-13 Thread z_rules55 at hotmail dot com
From: z_rules55 at hotmail dot com
Operating system: 
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  Docs incorrectly explain the rules for naming variables and 
constants

Description:

As I had previously reported here (http://bugs.php.net/bug.php?id=39150),
PHP does in fact allow the creation of variables and constants with names
that contain invalid characters. As far as I can tell, PHP will let you
create a variable or constant with any string whatsoever, even a binary
one. Whether or not it is desirable to allow this behavior is not the
point of this report; but if it is desirable, or if it's not going to be
fixed, could the docs please be updated to clarify the fact that you *can*
use invalid variable/constant names?


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


[PHP-DOC] cvs: phpdoc /en/reference/sam .cvsignore constants.xml reference.xml

2006-11-13 Thread Dave Renshaw
dsr Mon Nov 13 16:57:28 2006 UTC

  Added files: 
/phpdoc/en/reference/sam.cvsignore constants.xml reference.xml 
  Log:
  Initial versions
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/.cvsignore?view=markup&rev=1.1
Index: phpdoc/en/reference/sam/.cvsignore
+++ phpdoc/en/reference/sam/.cvsignore
functions.xml
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/constants.xml?view=markup&rev=1.1
Index: phpdoc/en/reference/sam/constants.xml
+++ phpdoc/en/reference/sam/constants.xml



 &reftitle.constants;
 &extension.constants;
 
  
   
SAM_AUTO
 (string)
   
   

 Automatic behaviour

   
  
  
   
SAM_BOOLEAN
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_BUS
 (string)
   
   

 Connect attribute used to set the name of the enterprise service bus to 
connect to.

   
  
  
   
SAM_BYTE
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_BYTES
 (string)
   
   

 Message body type descriptor.

   
  
  
   
SAM_DELIVERYMODE
 (string)
   
   

 Message header property.

   
  
  
   
SAM_DOUBLE
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_ENDPOINTS
 (string)
   
   

 Connect attribute used to define the possible endpoints to connect to.

   
  
  
   
SAM_FLOAT
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_HOST
 (string)
   
   

 Connect attribute used to set the hostname of the required messaging 
server.

   
  
  
   
SAM_INT
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_LONG
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_MANUAL
 (string)
   
   

 Manual (script controlled) behaviour

   
  
  
   
SAM_NON_PERSISTENT
 (string)
   
   

 Connect attribute value used to request messages are not made persistent 
on the messaging
 server.

   
  
  
   
SAM_PASSWORD
 (string)
   
   

 Connect attribute used to define the password to be used for the user 
account being used to
 connect to a messaging server that requires authorisation for connections.

   
  
  
   
SAM_PERSISTENT
 (string)
   
   

 Connect attribute value used to request messages are made persistent on 
the messaging server
 to protect against loss of messages in the event of failure.

   
  
  
   
SAM_PORT
 (string)
   
   

 Connect attribute used to set the port number on which to communicate with 
the
 messaging server.

   
  
  
   
SAM_PRIORITY
 (string)
   
   

 Option name used on send requests to specify a delivery priority value.

   
  
  
   
SAM_REPLY_TO
 (string)
   
   

 Message propery used to specify the queue identity on to which the script 
expects response
 or reply messages to be posted.

   
  
  
   
SAM_RTT
 (string)
   
   

 Connect protocol definition for selecting the IBM Realtime Transport 
protocol for
 communication with a business integration messaging server.

   
  
  
   
SAM_SELECT
 (string)
   
   

 Receive attribute used to set the required message selector.

   
  
  
   
SAM_STRING
 (string)
   
   

 Type specifier used when setting properties on SAM_Message objects.

   
  
  
   
SAM_TARGETCHAIN
 (string)
   
   

 Connection attribute used to set the required target chain identifier.

   
  
  
   
SAM_TEXT
 (string)
   
   

 Message body type descriptor.

   
  
  
   
SAM_TIMETOLIVE
 (string)
   
   

 Message send option name used to specify the length of time a message 
should be retained in milliseconds.

   
  
  
   
SAM_TRANSACTIONS
 (string)
   
   

 Connection attribute used to set required transactional behaviour. May be 
set to SAM_AUTO
 (default) or SAM_MANUAL.

   
  
  
   
SAM_USERID
 (string)
   
   

 Connect attribute used to define the account to being used to
 connect to a messaging server that requires authorisation for connections.

   
  
  
   
SAM_WAIT
 (string)
   
   

 Receive property used to specify the wait timeout to be used when 
receiving a message from a queue or subscription.

   
  
  
   
SAM_WMQ
 (string)
   
   

 Connect protocol definition for selecting the IBM WebSphere MQSeries 
protocol for
 communication with the desired messaging server.
 

[PHP-DOC] cvs: phpdoc /en/reference/filter/functions filter-input-array.xml filter-var-array.xml

2006-11-13 Thread Antony Dovgal
tony2001Mon Nov 13 15:11:27 2006 UTC

  Modified files:  
/phpdoc/en/reference/filter/functions   filter-input-array.xml 
filter-var-array.xml 
  Log:
  fix grammar
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filter/functions/filter-input-array.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/en/reference/filter/functions/filter-input-array.xml
diff -u phpdoc/en/reference/filter/functions/filter-input-array.xml:1.3 
phpdoc/en/reference/filter/functions/filter-input-array.xml:1.4
--- phpdoc/en/reference/filter/functions/filter-input-array.xml:1.3 Wed Nov 
 8 11:02:16 2006
+++ phpdoc/en/reference/filter/functions/filter-input-array.xml Mon Nov 13 
15:11:27 2006
@@ -1,5 +1,5 @@
 
-
+
 
  
   filter_input_array
@@ -49,7 +49,7 @@
   
This parameter can be also an integer holding a filter constant. Then all values in the
-   input array is filtered by this filter.
+   input array are filtered by this filter.
   
  
 
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filter/functions/filter-var-array.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/filter/functions/filter-var-array.xml
diff -u phpdoc/en/reference/filter/functions/filter-var-array.xml:1.4 
phpdoc/en/reference/filter/functions/filter-var-array.xml:1.5
--- phpdoc/en/reference/filter/functions/filter-var-array.xml:1.4   Wed Nov 
 8 11:02:16 2006
+++ phpdoc/en/reference/filter/functions/filter-var-array.xml   Mon Nov 13 
15:11:27 2006
@@ -1,5 +1,5 @@
 
-
+
 
  
   filter_var_array
@@ -46,7 +46,7 @@
   
This parameter can be also an integer holding a filter constant. Then all values in the
-   input array is filtered by this filter.
+   input array are filtered by this filter.
   
  
 


[PHP-DOC] Re: #39453 [Opn->Fbk]: Misleading note in ODBC Functions (Unified)

2006-11-13 Thread Nick Gorham

[EMAIL PROTECTED] wrote:

 ID:  39453
 Updated by:  [EMAIL PROTECTED]
 Reported By: nick dot gorham at easysoft dot com
-Status:  Open
+Status:  Feedback
 Bug Type:Documentation problem
 PHP Version: Irrelevant
 New Comment:

Which note do you mean? The note I see doesn't say the same thing you
indicate, but I might be just missing it.



I see the note on the top of the page here.

http://uk.php.net/manual/en/ref.uodbc.php


Also, while your documentation problem may be justified, we can't
possible accommodate users who don't set permissions properly (and
decide to rebuild PHP).



Ok, thats always your decision, but the problem I see, is its the 
misleading note that in this case, was the reason the user "decided" to 
rebuild PHP, as it gave the indication that to do what he wanted to do, 
a rebuild was required.


--
Nick Gorham
Easysoft Limited
unixODBC project lead.