Re: [PHP-DEV] month part

2002-12-20 Thread Diana Castillo
Hi everyone, I really wanted to validate if they put in a date , I ended up doing it like this: list($month, $day, $year) = sscanf($lastcontact,%d/%d/%d); if (checkdate($month,$day,$year)){it is a date} Antony Dovgal [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL

[PHP-DEV] RC4 and PHP_AUTH_USER

2002-12-20 Thread Phil Driscoll
Andrei said he wants to roll RC4 today. Can someone take a look at http://bugs.php.net/bug.php?id=20441 which is marked as critical for 4.3.0. Thanks -- Phil Driscoll -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: #21060 [Opn-Bgs]: range() gives warning and returns false whenlow == high

2002-12-20 Thread Derick Rethans
On 20 Dec 2002 [EMAIL PROTECTED] wrote: ID: 21060 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Linux 2.4.18 PHP Version: 4CVS-2002-12-16

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2002-12-20 Thread Andrei Zmievski
On Fri, 20 Dec 2002, Marcus Börger wrote: What about uniqid(): http://www.zend.com/zend/week/week116.php#Heading5 I would go for disabling when not available and sending an error when calling from cygwin without more entropy parameter set to true. The rest can be fixed for 4.3.1 as it seems

Re: [PHP-DEV] Re: #21060 [Opn-Bgs]: range() gives warning andreturns false when low == high

2002-12-20 Thread Derick Rethans
On Fri, 20 Dec 2002, Andrei Zmievski wrote: Let's postpone this until 4.3.1. It is not critical. I didn't say it was; I was just saying that I think it shouldn't be bogus :) Derick On Fri, 20 Dec 2002, Derick Rethans wrote: On 20 Dec 2002 [EMAIL PROTECTED] wrote: ID:

[PHP-DEV] 4.3 + gzip-encoding

2002-12-20 Thread Marcus Börger
Hi, i just have installed latest php 4.3 on linux and windows. I use the same directory and therefore .htaccess files for apache/mod_php on both platforms. When i enable enable output compression with php_value zlib.output_compression On in .htaccess the linux version works as expected

[PHP-DEV] Re: #21060 [Opn-Bgs]: range() gives warning and returns false when low == high

2002-12-20 Thread Ilia A.
On December 20, 2002 06:35 am, you wrote: On 20 Dec 2002 [EMAIL PROTECTED] wrote: ID: 21060 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Arrays related Operating System:

Re: [PHP-DEV] Re: #21060 [Opn-Bgs]: range() gives warning andreturns false when low == high

2002-12-20 Thread Derick Rethans
On Fri, 20 Dec 2002, Ilia A. wrote: On December 20, 2002 06:35 am, you wrote: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at

Re: [PHP-DEV] Re: #21060 [Opn-Bgs]: range() gives warning and returns false when low == high

2002-12-20 Thread Ilia A.
On December 20, 2002 09:37 am, you wrote: On Fri, 20 Dec 2002, Ilia A. wrote: On December 20, 2002 06:35 am, you wrote: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-20 Thread Moriyoshi Koizumi
Andi Gutmans [EMAIL PROTECTED] wrote: At 01:28 PM 12/19/2002 +, Wez Furlong wrote: Actually, it does seem valid to me; streams based on FILE* are not registered in the persistent list, so does it make sense to have the associated resources registered as persistent resources when they will

Re: [PHP-DEV] Changelog broken?

2002-12-20 Thread Andrei Zmievski
Ilia has rewritten the old php-rcs2log script in PHP itself and it's working wonderfully. The Changelog generation is back online. On Mon, 11 Nov 2002, Andrei Zmievski wrote: On Mon, 11 Nov 2002, Steve Alberty wrote: Hi, the Changelog file in the php4 cvs tree is unchanged since 7 days.

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-20 Thread Andi Gutmans
At 11:57 PM 12/20/2002 +0900, Moriyoshi Koizumi wrote: Andi Gutmans [EMAIL PROTECTED] wrote: At 01:28 PM 12/19/2002 +, Wez Furlong wrote: Actually, it does seem valid to me; streams based on FILE* are not registered in the persistent list, so does it make sense to have the associated

[PHP-DEV] ZE2: accessing a class static variable

2002-12-20 Thread Mickael Bailly
Hello, One line to say this is my first post here, I thought about posting in php-general, but ZE2 is in development, so... I want to access a static variable of a class, but I CANNOT use directly the class name, so class name is in a variable. To be clear: ?PHP class foo {

Re: [PHP-DEV] ZE2: accessing a class static variable

2002-12-20 Thread Andi Gutmans
This is a known limitation. I will try and address this probably with some kind of special syntax. Andi At 04:49 PM 12/20/2002 +0100, Mickael Bailly wrote: Hello, One line to say this is my first post here, I thought about posting in php-general, but ZE2 is in development, so... I

[PHP-DEV] CLI php.exe on WIn32

2002-12-20 Thread Frank M. Kromann
Hi, The latest changes to the project files under WIn32, creates name conflict, by having php.exe created from two different projects in the same directory. I suggest that we move the cli version from ..\Release_TS to ..\Release_TS\cli And the same for Debug_TS and Release_inline_ts builds. -

Re: [PHP-DEV] CLI php.exe on WIn32

2002-12-20 Thread Marcus Börger
At 18:27 20.12.2002, Frank M. Kromann wrote: Hi, The latest changes to the project files under WIn32, creates name conflict, by having php.exe created from two different projects in the same directory. I suggest that we move the cli version from ..\Release_TS to ..\Release_TS\cli And the same

Re: [PHP-DEV] ZE2: accessing a class static variable

2002-12-20 Thread Markus Fischer
Hi, while it's good to read that Andi is thinking of something, this issue has been brought up recently. If you need a workaround now, you can use eval() to accomplish this. - Markus On Fri, Dec 20, 2002 at 04:49:00PM +0100, Mickael Bailly wrote : Hello, One

[PHP-DEV] mysql 4.0.6 gamma and php 4.3.0 .... ?

2002-12-20 Thread tijn
I have a problem that I think might be caused by the version of the mysql client that is included with the binary of php as standard. When i run the following query: SELECT * FROM rs_projects AS p LEFT JOIN rs_proj_members AS m USING (proj_id) WHERE (p.create_id='3') OR (m.user_id='3' AND

Re: [PHP-DEV] mysql 4.0.6 gamma and php 4.3.0 .... ?

2002-12-20 Thread Derick Rethans
On Fri, 20 Dec 2002, tijn wrote: Can someone confirm that my expectation is correct, and let me know how I can get hold of php 4.3.0 that runs with a more up-to-date client? I know that I can achieve this by recompiling, but I am on windows and don't own Visual C++. http://snaps.php.net/

RE: [PHP-DEV] CLI php.exe on WIn32

2002-12-20 Thread Sjon
This might be an option: build the cgi cli as php-cgi.exe and php-cli.exe respectively, and add a post build event that copies the php-cgi.exe to php.exe, or something like that... Aren't the windows dist's made by hand anyway?? Sjon. -Original Message- From: Frank M. Kromann

[PHP-DEV] Re: mysql 4.0.6 gamma and php 4.3.0 .... ?

2002-12-20 Thread tijn
I had a conversation with derick over email - here is a summary for those struggeling with the same issue: 4.3 will not include the new mysql client compatible with mysql 4 This will be included in php 4.4 / 5 4.4/5 will include an extension which is much more compatible with mysql 4 The current

[PHP-DEV] Re: mysql 4.0.6 gamma and php 4.3.0 .... ?

2002-12-20 Thread Thomas Seifert
what's the exact problem with the php/mysql4-interaction? I'm using mysql-4.0.5 and php-4.2.3 in production without any problems. Ok, I'm not using any special features of mysql4 ;-). Regards, Thomas On Fri, 20 Dec 2002 21:28:44 - [EMAIL PROTECTED] (Tijn) wrote: I had a conversation with

Re: [PHP-DEV] Re: mysql 4.0.6 gamma and php 4.3.0 .... ?

2002-12-20 Thread Derick Rethans
On Fri, 20 Dec 2002, Thomas Seifert wrote: what's the exact problem with the php/mysql4-interaction? I'm using mysql-4.0.5 and php-4.2.3 in production without any problems. Ok, I'm not using any special features of mysql4 ;-). Nothing, just that the mysql extension in the Windows build is

[PHP-DEV] RC4: ground rules

2002-12-20 Thread Andrei Zmievski
Everyone, I have just released 4.3.0RC4. Despite the quote in my signature, I am determined to keep this one the very last final RC of the interminable 4.3.0 development cycle. Towards that end, I will closely monitor the CVS commits and revert any that do not satisfactorily explain what critical

Re: [PHP-DEV] Re: #21060 [Opn-Bgs]: range() gives warning and returns false when low == high

2002-12-20 Thread Chandrashekhar Bhosle
On Fri, 20 Dec 2002 09:44:49 -0500 Ilia A. [EMAIL PROTECTED] wrote: What would be an output then, array() ? range(2,4) gives array(2,3,4); range(2,3) gives array(2,3); range(2,2) gives array(2); Good idea, +1. I'll prepare a patch.

Re: [PHP-DEV] RC4: ground rules

2002-12-20 Thread Frank M. Kromann
Hi Andrei, Should I commit a small fix to the Windows projects to avoid having the CGI and CLI produce php.exe to the same directory ? - Frank Everyone, I have just released 4.3.0RC4. Despite the quote in my signature, I am determined to keep this one the very last final RC of the

Re: [PHP-DEV] RC4: ground rules

2002-12-20 Thread Philip Olson
Attatched is a patch that essentially goes back to 4.2.3 behavior except the external auth will not be available with PHP in safe mode. REMOTE_USER exists regardless. It seems some people also wanted an ini option, I don't know how to do that! :) References for this patch:

Re: [PHP-DEV] RC4: ground rules

2002-12-20 Thread Moriyoshi Koizumi
Ohh, it seems we have been working on the same patch simultaneously :) Attached is my version of fix for bug #20441, which adopts a new ini entry php_auth_exposure so that administrators can selectively expose auth information to the clients regardless of safe_mode settings. Possible values