Re: [PHP-DEV] PHP 5.0.1

2004-08-02 Thread Antony Dovgal
On Mon, 02 Aug 2004 11:21:12 -0700 Andi Gutmans <[EMAIL PROTECTED]> wrote: > At 11:16 AM 8/2/2004 +0400, Antony Dovgal wrote: > >On Sat, 31 Jul 2004 17:43:35 -0700 > >Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > > > As I mentioned about a week ago, I'd like to roll 5.0.1 (mainly > > > due to the

Re: [PHP-DEV] Seg fault

2004-08-02 Thread Antony Dovgal
On Mon, 02 Aug 2004 13:36:22 -0300 Cristiano Duarte <[EMAIL PROTECTED]> wrote: > Antony Dovgal wrote: > > > On Sun, 1 Aug 2004 00:20:08 +1000 > > Kevin Waterson <[EMAIL PROTECTED]> wrote: > > > >> Well, no. I am running apache 1.3.31 and php 5.1.0 > >> > >> /php/dev/this/php5-200407310630/Zend/

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jevon Wright
I always wished that PHP had VB's set of operators on dates/times... (and also in SQL): year(), month(), date(), time_serial(), and the like. Yes, you can do it with date("...", $x); but then it's just awkward to remember all the operators. Also, I'd always wished that PHP would have support for d

Re: [PHP-DEV] Date Support

2004-08-02 Thread Wez Furlong
Urgh, blame PEAR for that ;-) There is a PECL date extension that you can obtain from our CVS (see http://www.php.net/anoncvs.php): cvs -d :pserver:[EMAIL PROTECTED]:/repository co pecl/date cd pecl/date phpize ./configure make install [ add date.so to php.ini ] --Wez. On Mon, 2 Aug 2004 23:07:4

RE: [PHP-DEV] GOTO operator

2004-08-02 Thread Robert Cummings
On Mon, 2004-08-02 at 23:08, Steph wrote: > > My point was to say it's powerful, as powerful as all those, not that it > > could replace them.. I would still use while(), do..while() and for() the > > times they are intended for.. I'm sure most of the people would.. > > There are > > however situat

[PHP-DEV] how to return a copy of arguments but using CopyOnWrite scheme?

2004-08-02 Thread tinys xuefer
i'm truying to write a ext for php, personal usage in some case, my function modify the value and return for performance issue, i'd like to use CopyOnWrite scheme for the case returning without modify but how? _ The new MSN 8: smart

Re: [PHP-DEV] Date Support

2004-08-02 Thread Robert Amos
On Mon, 2 Aug 2004 23:08:17 -0400, Jason Garber <[EMAIL PROTECTED]> wrote: > Hello George, > > Because they both operate on an integer timestamp... > > two things: > SELECT CURDATE() + INTERVAL 7 MONTH; > echo strtotime("7/12/1900"); > > Timestamps are fine for things that are happe

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jason Garber
Hello George, Because they both operate on an integer timestamp... two things: SELECT CURDATE() + INTERVAL 7 MONTH; echo strtotime("7/12/1900"); Timestamps are fine for things that are happening within a very limited range of dates. How do you add a given number of months to a d

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jason Garber
Hello Wez, I must be missing something... I went to the link and couldn't find any documentation. I downloaded it and all the .tgz contained were a couple of .php scripts? -- Best regards, Jasonmailto:[EMAIL PROTECTED] Monday, August 2, 2004, 10:41:09 PM, you wrot

RE: [PHP-DEV] GOTO operator

2004-08-02 Thread Steph
> My point was to say it's powerful, as powerful as all those, not that it > could replace them.. I would still use while(), do..while() and for() the > times they are intended for.. I'm sure most of the people would.. > There are > however situations where goto is what makes sense.. I'm still wai

Re: [PHP-DEV] GOTO operator

2004-08-02 Thread DvDmanDT
> And my point still remains. There are an awful lot of PHP programmers out > there who really don't need an extra way to write for(), or while(), or > do..while(). It makes maintenance work harder when you have a mixture of > styles in there to cope with. > > I don't for a moment believe that Sa

RE: [PHP-DEV] GOTO operator

2004-08-02 Thread Steph
> My point still remains.. Goto is powerful, even if not needed.. There's > about one time I would use goto, which could easily be done with two > do..while().. The funny thing is, that I didn't do it that way, cause I > though it looked ugly. And my point still remains. There are an awful lot of

Re: [PHP-DEV] Date Support

2004-08-02 Thread Wez Furlong
http://pecl.php.net/package-info.php?package=Date It's not in the core because it is still relatively young. Maybe in a future release... --Wez. On Mon, 2 Aug 2004 22:36:14 -0400, Jason Garber <[EMAIL PROTECTED]> wrote: > Hello internals, > > Not to take away from the wonderful and lively "GO

Re: [PHP-DEV] Date Support

2004-08-02 Thread George Schlossnagle
On Aug 2, 2004, at 10:36 PM, Jason Garber wrote: Hello internals, Not to take away from the wonderful and lively "GOTO" discussion, but... I've got a couple simple questions. What's insufficient in strtotime() and strftime()? George -- PHP Internals - PHP Runtime Development Mailing List To un

[PHP-DEV] Date Support

2004-08-02 Thread Jason Garber
Hello internals, Not to take away from the wonderful and lively "GOTO" discussion, but... I've got a couple simple questions. 1. Is there a particular reason that PHP does not have a really good set of functions for dealing with true date and time types (i.e. not timestamps)? 2. I t

Re: [PHP-DEV] GOTO operator

2004-08-02 Thread DvDmanDT
My point still remains.. Goto is powerful, even if not needed.. There's about one time I would use goto, which could easily be done with two do..while().. The funny thing is, that I didn't do it that way, cause I though it looked ugly. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia

RE: [PHP-DEV] GOTO operator

2004-08-02 Thread Steph
> My opinion would be that goto isn't needed with the do..while() > statement.. > But on the other hand.. Neither for(), while() or do..while() would be > needed with goto, would they? I learned a language called PHP. It contains for(), while() and do..while(). I've been writing scripts that con

Re: [PHP-DEV] GOTO operator

2004-08-02 Thread DvDmanDT
> I just woke up but I think this can be solved with one do..while and using > bitfield for example. so when you break, just check the bitfield what to > clean up. Indeed, but the original point was to make it easier to read.. Now, what will make most sense to a newbie, this or the goto example th

Re: [PHP-DEV] Request: Support for a memory_limit exploit paper needed

2004-08-02 Thread Moriyoshi Koizumi
What a stupid question I asked here... Nevermind. Moriyoshi On 2004/08/02, at 8:11, Moriyoshi Koizumi wrote: Hi, The package includes a description how the test works. It basicly consists of compiling PHP on your normal platform: f.e. OpenBSD Apache2 CGI. You should just add --enable-memory-limit

Re: [PHP-DEV] SimpleXML returning attributes as objects instead of strings

2004-08-02 Thread David Sklar
Ahh. Thanks. David Sterling Hughes wrote: iterators... On Mon, 02 Aug 2004 16:53:49 -0400, David Sklar <[EMAIL PROTECTED]> wrote: SimpleXML returns attribute values as SimpleXMLElement objects instead of strings. E.g, given this: $sxe = simplexml_load_string('Doc Ock'); $sxe['arms'] and $sxe['legs'

Re: [PHP-DEV] SimpleXML returning attributes as objects instead of strings

2004-08-02 Thread Sterling Hughes
iterators... On Mon, 02 Aug 2004 16:53:49 -0400, David Sklar <[EMAIL PROTECTED]> wrote: > SimpleXML returns attribute values as SimpleXMLElement objects instead > of strings. E.g, given this: > > $sxe = simplexml_load_string('Doc > Ock'); > > $sxe['arms'] and $sxe['legs'] are SimpleXMLElement ob

[PHP-DEV] SimpleXML returning attributes as objects instead of strings

2004-08-02 Thread David Sklar
SimpleXML returns attribute values as SimpleXMLElement objects instead of strings. E.g, given this: $sxe = simplexml_load_string('Doc Ock'); $sxe['arms'] and $sxe['legs'] are SimpleXMLElement objects. This mostly works OK, but causes problems when using empty() to test if an attribute has a va

Re: [PHP-DEV] list abuse

2004-08-02 Thread Paul G
- Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]>; "Paul G" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 02, 2004 2:25 PM Subject: Re: [PHP-DEV] list abuse > Zeev sends lots of > Viagra to me :) too.. much... inf

Re: [PHP-DEV] list abuse

2004-08-02 Thread George Schlossnagle
On Aug 2, 2004, at 2:25 PM, Andi Gutmans wrote: I get lots of "spam" from people on this list. It's just that spamers are getting smarter and smarter and fake their emails well. Zeev sends lots of Viagra to me :) You too? I thought he was trying to tell me something George -- PHP Internals -

Re: [PHP-DEV] list abuse

2004-08-02 Thread Andi Gutmans
I get lots of "spam" from people on this list. It's just that spamers are getting smarter and smarter and fake their emails well. Zeev sends lots of Viagra to me :) Andi At 04:53 PM 8/2/2004 +0300, Andrey Hristov wrote: Quoting Paul G <[EMAIL PROTECTED]>: > > - Original Message - > From:

Re: [PHP-DEV] PHP 5.0.1

2004-08-02 Thread Andi Gutmans
At 11:16 AM 8/2/2004 +0400, Antony Dovgal wrote: On Sat, 31 Jul 2004 17:43:35 -0700 Andi Gutmans <[EMAIL PROTECTED]> wrote: > As I mentioned about a week ago, I'd like to roll 5.0.1 (mainly due to > the auth bug) and some other fixes. > I was thinking of rolling this minor release tomorrow or Tuesd

Re: [PHP-DEV] Seg fault

2004-08-02 Thread Cristiano Duarte
Antony Dovgal wrote: > On Sun, 1 Aug 2004 00:20:08 +1000 > Kevin Waterson <[EMAIL PROTECTED]> wrote: > >> Well, no. I am running apache 1.3.31 and php 5.1.0 >> >> /php/dev/this/php5-200407310630/Zend/zend_constants.c(33) : Block >> 0x0087F563 >> status:/php/dev/this/php5-200407310630/Zend/zend_v

Re: [PHP-DEV] list abuse

2004-08-02 Thread Paul G
- Original Message - From: "Andrey Hristov" <[EMAIL PROTECTED]> To: "Paul G" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 02, 2004 9:53 AM Subject: Re: [PHP-DEV] list abuse --- snip --- > Sure it does it intentionally. I have used to check the site without the > pro

Re: [PHP-DEV] Info needed

2004-08-02 Thread Derick Rethans
On Mon, 2 Aug 2004, Kamesh Jayachandran wrote: > Hi Derick, > Did you apply my patches? Not yet, but I will. I just returned today. Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Info needed

2004-08-02 Thread Kamesh Jayachandran
Hi Derick, Did you apply my patches? With regards Kamesh Jayachandran On Mon, 19 Jul 2004 21:29:47 +0200 (CEST), "Derick Rethans" <[EMAIL PROTECTED]> said: > On Mon, 19 Jul 2004, Kamesh Jayachandran wrote: > > > Hi Derick, > > Did you apply my patches? > > You'll have to wait until I get back f

Re: [PHP-DEV] Re: How to access the per-class constant from a member function?

2004-08-02 Thread Kamesh Jayachandran
Hi Derick, Thanks for the correction. With regards Kamesh Jayachandran On Mon, 2 Aug 2004 16:02:23 +0200 (CEST), "Derick Rethans" <[EMAIL PROTECTED]> said: > On Mon, 2 Aug 2004, Kamesh Jayachandran wrote: > > > Hi Mehdi, > > Even Foo::HELLO works. > > My question is why simple HELLO inside a memb

Re: [PHP-DEV] Re: How to access the per-class constant from a member function?

2004-08-02 Thread Derick Rethans
On Mon, 2 Aug 2004, Kamesh Jayachandran wrote: > Hi Mehdi, > Even Foo::HELLO works. > My question is why simple HELLO inside a member function does not work. > > Why are we not able to access the static and const members of a class > from inside a class member function like the way with other memb

Re: [PHP-DEV] implementation of islamic (hijri) calendar for Calendar extension

2004-08-02 Thread mostapha31
Hi Steph, My work is based on the work of Muhammad Hussain in hdate (Generate Hijri dates, calendars and prayertimes using command line and X interface, http://sourceforge.net/projects/hdate/ ). for more information please read the file islamic_calendar.txt . Thanks. Steph wrote: Hi Mostapha, S

Re: [PHP-DEV] list abuse

2004-08-02 Thread Andrey Hristov
Quoting Paul G <[EMAIL PROTECTED]>: > > - Original Message - > From: "Andrey Hristov" <[EMAIL PROTECTED]> > To: "Paul G" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, August 02, 2004 4:18 AM > Subject: Re: [PHP-DEV] list abuse > > > > Paul G wrote: > > > folks, > > > > > La

[PHP-DEV] Re: How to access the per-class constant from a member function?

2004-08-02 Thread Kamesh Jayachandran
Hi Mehdi, Even Foo::HELLO works. My question is why simple HELLO inside a member function does not work. Why are we not able to access the static and const members of a class from inside a class member function like the way with other member variables.? Any special reasons. With regards Kamesh J

Re: [PHP-DEV] PHP 4 Bug Summary Report

2004-08-02 Thread Derick Rethans
On Mon, 2 Aug 2004, Wez Furlong wrote: > Free bugs for all ! ;-) As opposed to free beer? I know what to choose then ;-) Also, I just fixed this in php-bugs-web. Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Sort patch

2004-08-02 Thread Derick Rethans
On Tue, 27 Jul 2004, John Coggeshall wrote: > attached What does it do? Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 4 Bug Summary Report

2004-08-02 Thread Wez Furlong
Free bugs for all ! ;-) --Wez. On Mon, 02 Aug 2004 11:04:10 +0200, Georg Richter <[EMAIL PROTECTED]> wrote: > Am Mo, den 02.08.2004 schrieb Wez Furlong um 10:38: > > On Mon, 2 Aug 2004 09:00:21 +0200, [EMAIL PROTECTED] wrote: > > > PHP 4 Bug Database summary - http://bugs.php.net > > > > 5, Sir?

Re: [PHP-DEV] PHP 4 Bug Summary Report

2004-08-02 Thread Georg Richter
Am Mo, den 02.08.2004 schrieb Wez Furlong um 10:38: > On Mon, 2 Aug 2004 09:00:21 +0200, [EMAIL PROTECTED] wrote: > > PHP 4 Bug Database summary - http://bugs.php.net > > 5, Sir? > PHP 5 is bug free! :) /Georg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] [PATCH] fix symbol namespace pollution from bundled libgd

2004-08-02 Thread Derick Rethans
On Fri, 23 Jul 2004, Joe Orton wrote: > Building the bundled libgd library into PHP causes symbol namespace > pollution; if any other Apache modules link a different version of libgd > into the Apache process they may instead pick up symbols from the PHP > libgd, and segfault randomly. (One of ou

Re: [PHP-DEV] [php 4.3.5] Determining Memory Usage by Variable

2004-08-02 Thread Derick Rethans
On Thu, 22 Jul 2004, Sterling Hughes wrote: > would be a good addition to xdebug, it couldn't be variable based, but > it could be data based. Yup, this is on my todo list. Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 4 Bug Summary Report

2004-08-02 Thread Wez Furlong
On Mon, 2 Aug 2004 09:00:21 +0200, [EMAIL PROTECTED] wrote: > PHP 4 Bug Database summary - http://bugs.php.net 5, Sir? --Wez. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] list abuse

2004-08-02 Thread Wez Furlong
I checked this last week; there are no people subscribed using that domain. On Sun, 1 Aug 2004 23:10:56 -0400, Paul G <[EMAIL PROTECTED]> wrote: > folks, > > would someone with ml admin privs take a look and, if present, remove an > @tgpwizards.com e-mail address subscription? the user has appar

Re: [PHP-DEV] GOTO operator

2004-08-02 Thread Zeev Suraski
At 11:22 02/08/2004, Derick Rethans wrote: On Sun, 1 Aug 2004, Zeev Suraski wrote: > At 15:45 31/07/2004, Derick Rethans wrote: > >Exceptions are an OO thing, and it makes NO sense to use them in > >procedural code. Goto is a good thing here. > > Can you explain why it makes no sense to use them in

Re: [PHP-DEV] GOTO operator

2004-08-02 Thread Derick Rethans
On Sun, 1 Aug 2004, Zeev Suraski wrote: > At 15:45 31/07/2004, Derick Rethans wrote: > >Exceptions are an OO thing, and it makes NO sense to use them in > >procedural code. Goto is a good thing here. > > Can you explain why it makes no sense to use them in procedural code? heh? If you're writing

Re: [PHP-DEV] Seg fault

2004-08-02 Thread Antony Dovgal
On Sun, 1 Aug 2004 00:20:08 +1000 Kevin Waterson <[EMAIL PROTECTED]> wrote: > Well, no. I am running apache 1.3.31 and php 5.1.0 > > /php/dev/this/php5-200407310630/Zend/zend_constants.c(33) : Block > 0x0087F563 > status:/php/dev/this/php5-200407310630/Zend/zend_variables.c(39) : > Actual locatio

Re: [PHP-DEV] PHP 5.0.1

2004-08-02 Thread Antony Dovgal
On Sat, 31 Jul 2004 17:43:35 -0700 Andi Gutmans <[EMAIL PROTECTED]> wrote: > As I mentioned about a week ago, I'd like to roll 5.0.1 (mainly due to > the auth bug) and some other fixes. > I was thinking of rolling this minor release tomorrow or Tuesday. If > you have any bug fixes you'd like to ma