Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Andi Gutmans
Well in general if you have an object and leave the function which instantiated it, it'll be destroyed (unless you hold a reference to it from some global, in which case you probably don't want it to be destroyed). I don't think it has to be more fine-grained than that. At 05:50 AM 8/1/2004 +02

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Michael Walter
Andi Gutmans wrote: I'm starting to like goto more and more :) Good good :) At least it's a simple concept as opposed to using/scoped which make me dizzy. Hehe, I think scoped could be pretty useful, though. Cheers, Michael At 03:24 AM 8/1/2004 +0200, Michael Walter wrote: Paul G wrote: - Orig

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Andi Gutmans
I'm starting to like goto more and more :) At least it's a simple concept as opposed to using/scoped which make me dizzy. At 03:24 AM 8/1/2004 +0200, Michael Walter wrote: Paul G wrote: - Original Message - From: "Michael Walter" <[EMAIL PROTECTED]> To: "Paul G" <[EMAIL PROTECTED]>; <[EMAIL

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Michael Walter
Paul G wrote: - Original Message - From: "Michael Walter" <[EMAIL PROTECTED]> To: "Paul G" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, July 31, 2004 1:59 PM Subject: Re: [PHP-DEV] GOTO operator --- snip --- presumably, you see the need in C because it's the cleanest way to f

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Sterling Hughes
i'm just piping up that i'm a strong +1 on goto, its immensely useful for code generators, like for example a gui application that wanted to generate some type of php code. also, when you start quoting djikstra in a php context, you've lost. goto is fine, fight the power! -sterling On Sat, 3

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Sara Golemon
> How does the GOTO implementation handle this > script1.php > > do_some_stuff(); > include script2.php; > > label: >echo "Hello" > ?> > > script2.php: > declare_some_funcs(); > some code ... > if (some_cond) { >goto label; > } > other code > ?> > Inc

[PHP-DEV] PHP 5.0.1

2004-07-31 Thread Andi Gutmans
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 make in, please let me know. There's no problem with delaying it somewhat more... A

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Rasmus Lerdorf
On Sat, 31 Jul 2004, Paul G wrote: > actually, alloc/dealloc was just used as an example. it could be anything - > rollback, closing sockets, pretty much any sort of 'undoing' that you need > to do to make it look like nothing ever happened ;) what you are suggesting > is similar to the hack i'm us

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Paul G
- Original Message - From: "Michael Walter" <[EMAIL PROTECTED]> To: "Paul G" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, July 31, 2004 1:59 PM Subject: Re: [PHP-DEV] GOTO operator --- snip --- > > presumably, you see the need in C because it's the cleanest way to free() >

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Andrey Hristov
Sara Golemon wrote: Thanks for the pointers, I at least see what I need to be exploring now (though I havn't sat down to unfold its meaning yet). Cetainly the implementation given earlier needs work whether its to make it work as advertised or in the more limited fashion suggested in other posts.

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Michael Walter
Hiho, Paul G wrote: - Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 30, 2004 2:08 PM Subject: Re: [PHP-DEV] GOTO operator --- snip --- I'm sorry but I just don't understand the great need for goto in PHP and th

Re: [PHP-DEV] Everyone on the road?

2004-07-31 Thread Andi Gutmans
:) At 11:10 AM 7/31/2004 +0100, Wez Furlong wrote: Nuked duplicate fstats in HEAD. On Sat, 31 Jul 2004 10:05:12 +0100, Wez Furlong <[EMAIL PROTECTED]> wrote: > I'm supposed to be writing this weekend, so technically I shouldn't > have time to dig into it until next weekend. > That means that I prob

Re: [PHP-DEV] Seg fault

2004-07-31 Thread Wez Furlong
I don't see how that helps us to fix the problem. --Wez. -- ___ _ ___ / ___|/ _ \_ _/ _ \ | | _| | | || || | | | | |_| | |_| || || |_| | \|\___/ |_| \___/ Wez Furlong, Glastonbury, Somerset, England On Sun, 1 Aug 2004 00:39:24 +1000, Kevin Waterson <[EMAIL PROTECTED]> wrot

Re: [PHP-DEV] Seg fault

2004-07-31 Thread Kevin Waterson
This one time, at band camp, Wez Furlong <[EMAIL PROTECTED]> wrote: > http://bugs.php.net/how-to-report.php http://www.bmezine.com/tattoo/A40305/high/dsc010660.jpg maybe short tags is the problem.. -- __ (_ \ _) )

Re: [PHP-DEV] Seg fault

2004-07-31 Thread Wez Furlong
http://bugs.php.net/how-to-report.php 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/z

[PHP-DEV] Seg fault

2004-07-31 Thread Kevin Waterson
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 location (location was relayed) Beginning: Overrun (magic=0x75622E6E, expected=0x7312F8DC

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Derick Rethans
On Fri, 30 Jul 2004, Andi Gutmans wrote: > At 10:31 PM 7/30/2004 +0200, Edin Kadribasic wrote: > >Andi Gutmans wrote: > > > >[snip] > > > >I didn't say it cannot be done with goto emulation (and abuse of a feature > >on par with switch(true)). What I mean is that using the real thing makes > >code

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Derick Rethans
On Thu, 29 Jul 2004, Sara Golemon wrote: > *this* implementation of GOTO requires a hash lookup, however it could be > reworked to use the same backpatching as the ZEND_JMP ops used with > conditional statements. While doing that would speed execution time by > skipping the hash lookup, it'd slow

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Derick Rethans
On Fri, 30 Jul 2004, Jeff Moore wrote: > > On Jul 30, 2004, at 4:33 PM, Edin Kadribasic wrote: > > > Jeff Moore wrote: > > > >> Where did the if statements go? do_stuff(), do_more_stuff(), and > >> do_even_more_stuff() should throw exceptions rather than return > >> boolean error indicators. > >

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Derick Rethans
On Fri, 30 Jul 2004, Edin Kadribasic wrote: > On Friday 30 July 2004 00:43, Paul G wrote: > [snip] > > This is exactly the kind of code that makes me miss goto so much for error > handling. I agree with that, +1 on goto from me, but still... only constant labels please! Derick -- PHP Internals

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Derick Rethans
On Wed, 28 Jul 2004, Sara Golemon wrote: > I wrote up a patch for implementing gotos in php scripts a couple months ago > as an exercise in working with the Zend engine. I put it aside assuming > noone would actually want it, but Wez and Ilia convinced me to post it for > consideration: > > Descr

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Derick Rethans
On Fri, 30 Jul 2004, Aidan Lister wrote: > > Develop some wacky construct that you have to use instead... that way, it > > will scare off novice users, and expert programmers will HAVE to know what > > they're doing and know that they really need it before they have to > > implement it. It's along

Re: [PHP-DEV] Spammer on Bugs page

2004-07-31 Thread Derick Rethans
On Thu, 29 Jul 2004, Jakub Vrana wrote: > Derick Rethans wrote: > >> > Perhaps limiting the number of bug report by IP per day and/or limiting > >> > the number of bugs with the same words should be implemented. > >> I agree. No one likes "Write here the text from image". > > IPs can be easily spo

Re: [PHP-DEV] [PATCH] tests/classes/array_access001.phpt

2004-07-31 Thread Derick Rethans
On Thu, 22 Jul 2004, Marcus Boerger wrote: > all tests PASS for me as doo show all QA reports. There must be > something else. What do you see Derick, PASS or FAIL? I've no idea. I was just wondering why he changed the test while there was no real reason for it afaik. Derick -- PHP Internals -

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Jacques Marneweck
Hi Sara, I can see where I can similfy certain code on a project I coded which would reduce some major ugly code. Sure I could have rewritten the code in c but I prefered having something easier to maintain in the early hours of the morning. Drop me a line where I can find the updated patches on

Re: [PHP-DEV] Everyone on the road?

2004-07-31 Thread Wez Furlong
Nuked duplicate fstats in HEAD. On Sat, 31 Jul 2004 10:05:12 +0100, Wez Furlong <[EMAIL PROTECTED]> wrote: > I'm supposed to be writing this weekend, so technically I shouldn't > have time to dig into it until next weekend. > That means that I probably will find some time this weekend ;-) > > --W

Re: [PHP-DEV] Everyone on the road?

2004-07-31 Thread Wez Furlong
I'm supposed to be writing this weekend, so technically I shouldn't have time to dig into it until next weekend. That means that I probably will find some time this weekend ;-) --Wez. On Fri, 30 Jul 2004 15:05:13 -0700, Andi Gutmans <[EMAIL PROTECTED]> wrote: > By the way, Sara, Wez, did you see

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread tinys xuefer
how about: "break label;" ? just a thought From: Andi Gutmans <[EMAIL PROTECTED]> To: "Sara Golemon" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] Subject: Re: [PHP-DEV] GOTO operator Date: Sat, 31 Jul 2004 00:13:51 -0700 MIME-Version: 1.0 X-Sender: [EMAIL PROTECTED] Received: from pb1.pair.com ([216.92.1

Re: [PHP-DEV] GOTO operator

2004-07-31 Thread Andi Gutmans
At 09:24 PM 7/30/2004 -0700, Sara Golemon wrote: > > > c) I don't think you are creating the necessary switch_free's and other > > > frees when jumping out of a scope unexpectedly. > > > > >Entirely possible. The tests I've run don't complain but that doesn't mean > >something bad isn't happening.