Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Andrey Hristov
Is it good idea (and is it possible) to disallow GOTO in main() ? Andrey Quoting Robert Cummings <[EMAIL PROTECTED]>: > On Wed, 2004-08-18 at 21:34, BDKR wrote: > > Hartmut Holzgraefe wrote: > > > > > Sebastian Bergmann wrote: > > > > > >> Exceptions are not an OOP feature per-se. They are a m

Re: [PHP-DEV] mail() on windows

2004-08-18 Thread David Vance
ok thanks. but still, how is it that mail('[EMAIL PROTECTED]','subject','body',"From: [EMAIL PROTECTED]"); should produce an error message stating "custom "From:" header missing"? and is there any reason the custom header can't be parsed, and if a "From:" header is found, to use that instead of

Re: [PHP-DEV] php.net announcement

2004-08-18 Thread Zeev Suraski
At 01:02 19/08/2004, Gordon P. Hemsley wrote: If I remember correctly, the reason that the "call for change" was included was because the new installation instructions described a different method of installation than the old installation instructions. The "call for change" was for everyone who had

[PHP-DEV] Re:

2004-08-18 Thread Sara Golemon
> > >- compile time hooking (no dynamic goto targets) > > > > > > > > That kind of makes them useless for writing parsers, which was one of > > the justifications of them. > > Hmmm you're right. I forgot that in C when doing parsers it's > commonplace to map the label addresses to some lookup i

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Sara Golemon
> Well, some time ago I wrote a small functions, that does exactly the same: > > PHP_FUNCTION(unregister_class) > { *snip* Barring some stylectic differences and a check to make sure it's not an internal class, that's precisely what I gave sean in shiva_destroy_class() But just to be clear, I

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Robert Cummings
On Thu, 2004-08-19 at 00:10, Alan Knowles wrote: > > >- compile time hooking (no dynamic goto targets) > > > > > That kind of makes them useless for writing parsers, which was one of > the justifications of them. Hmmm you're right. I forgot that in C when doing parsers it's commonplace to

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Rasmus Lerdorf
On Wed, 18 Aug 2004, Sean Coates wrote: I think Sean is talking about creating an application server _in PHP_. I understood that. My chicken and egg comment was this logic: Marcus: the reason we don't need this is because we don't have [an application server] that would require it. Sean: the reaso

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Antony Dovgal
On Wed, 18 Aug 2004 18:01:25 -0400 Sean Coates <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello Internals, > > Has anyone given thought to a feature that allows (PHP) developer to > invalidate classes (allowing the developer to re-load the class, with > modi

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Alan Knowles
- compile time hooking (no dynamic goto targets) That kind of makes them useless for writing parsers, which was one of the justifications of them. Regards Alan - goto can only jump to labels within the same scope - goto could only jump out of blocks and not into Cheers, Rob. -- PH

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Sebastian Bergmann
Marcus Boerger wrote: Not exactly. In most languages exceptions are objects but in other languages like C++ you can pass whatever you want as amn exception. I made the mistake of mixing the general case (out-of-band error signalling) and the special case (Exception objects in PHP). -- Sebastian B

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Robert Cummings
On Wed, 2004-08-18 at 21:34, BDKR wrote: > Hartmut Holzgraefe wrote: > > > Sebastian Bergmann wrote: > > > >> Exceptions are not an OOP feature per-se. They are a means for out-of- > >> band error signalling. (Of course they use objects for that which could > >> be regarded as a turn-off by non

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Sean Coates
I think Sean is talking about creating an application server _in PHP_. I understood that. My chicken and egg comment was this logic: Marcus: the reason we don't need this is because we don't have [an application server] that would require it. Sean: the reason we need it is because I'd like to deve

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Andi Gutmans
At 03:30 AM 8/19/2004 +0200, Michael Walter wrote: Andi Gutmans wrote: At 08:23 PM 8/18/2004 -0400, Sean Coates wrote: Marcus Boerger wrote: >>Is this worth further discussion? > > Not before until we have an application server and php scripts that are > designed to run for several months. And even

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread BDKR
Hartmut Holzgraefe wrote: Sebastian Bergmann wrote: Exceptions are not an OOP feature per-se. They are a means for out-of- band error signalling. (Of course they use objects for that which could be regarded as a turn-off by non-OOP-eople :-) they can also be a turn-off for performance anxious p

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Michael Walter
Andi Gutmans wrote: At 08:23 PM 8/18/2004 -0400, Sean Coates wrote: Marcus Boerger wrote: >>Is this worth further discussion? > > Not before until we have an application server and php scripts that are > designed to run for several months. And even then we would also need > improved Reflection supp

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Hartmut Holzgraefe
Sebastian Bergmann wrote: Exceptions are not an OOP feature per-se. They are a means for out-of- band error signalling. (Of course they use objects for that which could be regarded as a turn-off by non-OOP-eople :-) they can also be a turn-off for performance anxious people -- Hartmut Holzgraefe

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Andi Gutmans
At 08:23 PM 8/18/2004 -0400, Sean Coates wrote: Marcus Boerger wrote: >>Is this worth further discussion? > > Not before until we have an application server and php scripts that are > designed to run for several months. And even then we would also need > improved Reflection support and conatiner su

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Sean Coates
Marcus Boerger wrote: >>Is this worth further discussion? > > Not before until we have an application server and php scripts that are > designed to run for several months. And even then we would also need > improved Reflection support and conatiner support and so on and so on. No disrespect intende

Re: [PHP-DEV] mail() on windows

2004-08-18 Thread Frank M. Kromann
These extra parameters to the TSendMail function are used by imap_mail(). To use this function you need to load the imap extension but you get a few more options that are not available in the standard mail function. See http://php.net/imap_mail for more information. - Frank > sorry in advance f

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Marcus Boerger
Hello Sebastian, Wednesday, August 18, 2004, 11:58:33 PM, you wrote: > Derick Rethans wrote: >> heh? If you're writing procedural code, you do not WANT to use OO >> features in there, as it makes your code no longer procedural. > Exceptions are not an OOP feature per-se. They are a means for o

Re: [PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Marcus Boerger
Hello Sean, Thursday, August 19, 2004, 12:01:25 AM, you wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > Hello Internals, > Has anyone given thought to a feature that allows (PHP) developer to > invalidate classes (allowing the developer to re-load the class, with > modified code)? I

[PHP-DEV] Re: Class Destruction / Reloading

2004-08-18 Thread Greg Beaver
Sean Coates wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Internals, Has anyone given thought to a feature that allows (PHP) developer to invalidate classes (allowing the developer to re-load the class, with modified code)? I realize that this is not possible now, and for good reason.

[PHP-DEV] mail() on windows

2004-08-18 Thread David Vance
sorry in advance for the length, formatting and possible redundancy of this message. Anyway, on Windows, leaving "sendmail_from" blank and setting a "From:" header in the extra headers parameter doesn't work. test.php: http://bugs.php.net/bug.php?id=28976 there are also a couple user notes on th

Re: [PHP-DEV] php.net announcement

2004-08-18 Thread Gordon P. Hemsley
If I remember correctly, the reason that the "call for change" was included was because the new installation instructions described a different method of installation than the old installation instructions. The "call for change" was for everyone who had previously written an article or tutorial on

[PHP-DEV] Class Destruction / Reloading

2004-08-18 Thread Sean Coates
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Internals, Has anyone given thought to a feature that allows (PHP) developer to invalidate classes (allowing the developer to re-load the class, with modified code)? I realize that this is not possible now, and for good reason. But I think the ide

Re: [PHP-DEV] GOTO operator

2004-08-18 Thread Sebastian Bergmann
Derick Rethans wrote: heh? If you're writing procedural code, you do not WANT to use OO features in there, as it makes your code no longer procedural. Exceptions are not an OOP feature per-se. They are a means for out-of- band error signalling. (Of course they use objects for that which could be

[PHP-DEV] flex.skl problem?

2004-08-18 Thread Derrell . Lipman
I'm trying to compile PHP from cvs, but it barfs while trying to generate zend_language_scanner.c from zend_language_scanner.l. The problem is in the specified skeleton file: flex.skl, and it seems to be dying near the beginning on the first '%-' line. I can't find any reference in the flex gramm

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Rasmus Lerdorf
On Wed, 18 Aug 2004, Fabrice Vignals wrote: > Also, I don't have any php function in mind, that use a "specific array" ( > array $key fixed ) as argument. I don't think it should necessarily be a fixed array. If someone wants to append something not in the spec to their cookie, why should we sto

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Daniel Convissor
On Wed, Aug 18, 2004 at 08:54:56PM +0200, Fabrice Vignals wrote: > Good new for this feature. > > I think array in arguments is not so good, for documentation + > comprehension + syntax code > > Documentation approximate Syntax : > bool SetCookie( string $name, [string $value], [array $array('

[PHP-DEV] Checking if file is on localhost or not, implent optional argument to file_exists() ?

2004-08-18 Thread Hannes Magnusson
Since PHP5 many/most filesystem functions can be used with "some" URL wrappers. That's good and all *but* now it's quite difficult to check if file is on localhost or not. It´s possible to use parse_url() and check if "scheme" is set for instance but I belive we should insert new

Re: [PHP-DEV] libxml and non iso-8859-1

2004-08-18 Thread Christian Stocker
On 18.8.2004 10:54 Uhr, moshe doron wrote: Please read http://bugs.php.net/bug.php?id=29711 we need decision Got a patch by Rob, which makes it default to UTF-8 Will test it and then commit it (he's away currently) chregu -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich p

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Fabrice Vignals
Good new for this feature. I think array in arguments is not so good, for documentation + comprehension + syntax code Documentation approximate Syntax : bool SetCookie( string $name, [string $value], [array $array('Max-Age'=> int $max-age, ['Comment'=> string $comment], > ['Path'=> relative||ab

Re: [PHP-DEV] On Namespaces...

2004-08-18 Thread Al Baker
I would just like to echo some concerns on namespaces. I've pioneered the adoption of PHP in some enterprise development groups at Avaya, and it's been adopted on the merits of the fastest and easiest tool for web interface development. Every now and then someone duplicates a class name and mutte

[PHP-DEV] Re: Mailing CVS commits

2004-08-18 Thread Derick Rethans
On Wed, 18 Aug 2004, Jakub Vrana wrote: > It seems that sending e-mails for CVS commits are temporarily > unavailable. When I commit something to phpdoc, commit is successful > but no mail to the list is sent. This is what CVS says: > Checking in check-references.php; > /repository/phpdoc/scripts

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Christian Schneider
Derick Rethans wrote: How is zend_strtolower() magic? I checked the RFC and we don't even need to convert it to lowercase. RDC 2109: 4.1 Syntax: General: "Attributes (names) (attr) are case-insensitive". BTW: The comment was wrong about Max-Age: -1 to delete a cookie, the RFC says you have to us

Re: [PHP-DEV] php.net announcement

2004-08-18 Thread Zeev Suraski
It's fixed, and I also removed this 'call for change' paragraph. It's unreasonable to ask everyone who ever published an article or a HOWTO to update their stuff, any more than it makes sense to ask everyone who ever wrote an XML article to update it for SimpleXML. It has to happen naturally..

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Derick Rethans
On Wed, 18 Aug 2004, Christian Schneider wrote: > Derick Rethans wrote: > > > > It can be made case-insensitive. > > It could be (although this requires some magic) but I'm not sure it > should be. I'd rather document the RFC-conforming way of specifying it. How is zend_strtolower() magic? Deric

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Derick Rethans
On Wed, 18 Aug 2004, Christian Schneider wrote: > Rasmus Lerdorf wrote: > > How about this: > > setcookie('name',$value,array('Max-Age'=>3600, 'Comment'=>$comment, 'Path'=>'/'); > > One drawback is that people have to know about the cookie > specifications, e.g. 'Max-Age': Is it case sensitive,

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Christian Schneider
Rasmus Lerdorf wrote: How about this: setcookie('name',$value,array('Max-Age'=>3600, 'Comment'=>$comment, 'Path'=>'/'); One drawback is that people have to know about the cookie specifications, e.g. 'Max-Age': Is it case sensitive, does it have a dash between max and age, etc? That should at le

[PHP-DEV] libxml and non iso-8859-1

2004-08-18 Thread moshe doron
Please read http://bugs.php.net/bug.php?id=29711 we need decision here. -- Moshe. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: setcookie() and Max-Age

2004-08-18 Thread Derick Rethans
On Tue, 17 Aug 2004, Rasmus Lerdorf wrote: > While that is an idea that will probably work, it seems messy to me. Code > with hardcoded expiries in the past that previously wouldn't cause any > cookies to be sent will now suddenly start sending cookies. Right, I think that is a bad idea too. >

[PHP-DEV] Re: Clarification needed regarding tests/run-test/test005.phpt

2004-08-18 Thread Kamesh Jayachandran
Can Someone clarify on this? With regards Kamesh Jayachandran On Wed, 11 Aug 2004 22:43:20 -0700, "Kamesh Jayachandran" <[EMAIL PROTECTED]> said: > Can someone clarify me on this? > > With regards > Kamesh Jayachandran > On Tue, 27 Jul 2004 22:46:40 -0700, "Kamesh Jayachandran" > <[EMAIL PROTECTE

Re: [PHP-DEV] php.net announcement

2004-08-18 Thread Sean Coates
This news posting also says "more easier", and should not. I don't have the necessary karma to correct this. S Sterling Hughes wrote: http://www.php.net/: Hereby we would like to kindly ask everyone who published an article or howto about installing PHP on Windows to revise those instructions a