Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2

2004-02-16 Thread Hans Lellelid
Hi Adam - Adam Bregenzer wrote: My biggest motivation for not having an exception class was to prevent people from having a catch all with exceptions. Personally, I think that attitude is what has caused an over use of exceptions (making every function throw Exception so as to not have to deal w

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2

2004-02-16 Thread Adam Bregenzer
On Mon, 2004-02-16 at 08:39, Hans Lellelid wrote: > will catch *all* exceptions thrown by any libraries I choose to use, > etc. Mixing the interface means requiring PHP developers to catch() on > the interface everywhere or risk having uncaught exceptions when a 3rd > party package they are usin

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 /

2004-02-16 Thread Steven D. Nowicki
Timm Friebe wrote: Andi P.S. - BTW, why not call it IException (or ExceptionInterface) instead of Throwable? I think for people who don't know Java, it makes more sense. Agreed. An updated patch is attached. - Timm I think if you're going to rename Throwable to IException, the naming scheme

[PHP-DEV] more on interface inheritance issues

2004-02-16 Thread Hans Lellelid
Hi - This issue of inheritance & interfaces persists to give me problems... Perhaps I'm going about this wrong for PHP. Zeev Suraski wrote: You're not supposed to change the signature when you're extending/implementing interfaces. I'll try to see if it's feasible to improve the checks so tha

Re: [PHP-DEV] Re: PHP5beta4: Problem using extensions or include path on Windows XP

2004-02-16 Thread Jani Taskinen
On Mon, 16 Feb 2004, Tobias Bradtke wrote: >Erik franzén wrote: >> I am trying to get PHP5beta4 work on my Win XP Pro machine as a module >> in apache 1.3.29. >> >> When I am starting apache I am getting an error saying that php5ts.dll >> has crashed. >> >> This happens when: >> >> a) When I en

[PHP-DEV] Re: PHP5beta4: Problem using extensions or include path on Windows XP

2004-02-16 Thread Tobias Bradtke
Erik franzén wrote: > I am trying to get PHP5beta4 work on my Win XP Pro machine as a module > in apache 1.3.29. > > When I am starting apache I am getting an error saying that php5ts.dll > has crashed. > > This happens when: > > a) When I enable any extension in php.ini > b) When I insert a inc

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

2004-02-16 Thread Timm Friebe
On Mon, 2004-02-16 at 09:35, Andi Gutmans wrote: > Hey, > > Marcus didn't mean it adds complexity to the code but to PHP. I can't see how it would: For those relying on the built-in base class, it won't change a single thing. For those wanting their own exception (or to be more correct: _class_)

Re: [PHP-DEV] extending interfaces - fringe behavior

2004-02-16 Thread Marcus Boerger
Hello Hans, Monday, February 16, 2004, 10:07:53 PM, you wrote: > Hi - > Zeev Suraski wrote: >> At 07:55 16/02/2004, Hans Lellelid wrote: >> >>> I have a need in a current application to extend interfaces and >>> possibly re-define (change signature) some of the inherited methods in >>> the ch

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

2004-02-16 Thread Marcus Boerger
Hello Ard, Monday, February 16, 2004, 9:51:51 PM, you wrote: > Marcus Boerger wrote: >> as i said before there is a reason for that: I played a long time with >> exceptions until they became what they are right now. And and attempt >> to increase the visibility of one of its members can be used

Re: [PHP-DEV] extending interfaces - fringe behavior

2004-02-16 Thread Hans Lellelid
Hi - Zeev Suraski wrote: At 07:55 16/02/2004, Hans Lellelid wrote: I have a need in a current application to extend interfaces and possibly re-define (change signature) some of the inherited methods in the child interface. ... You're not supposed to change the signature when you're extending/

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

2004-02-16 Thread Ard Biesheuvel
Marcus Boerger wrote: as i said before there is a reason for that: I played a long time with exceptions until they became what they are right now. And and attempt to increase the visibility of one of its members can be used to make it SEGV. So i don't want more visibility. Also where is the reason

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

2004-02-16 Thread Marcus Boerger
Hello Stephane, Monday, February 16, 2004, 5:13:46 PM, you wrote: > == Quote from Andi Gutmans ([EMAIL PROTECTED])'s article >> Marcus didn't mean it adds complexity to the code but to PHP. It's >> obviously quite easy to implement this interface; implementation was never >> a problem. >> I don't

Re: [PHP-DEV] Re: Statics and PHP5

2004-02-16 Thread Marcus Boerger
Hello Dave, seems like you misunderstood the basic concept of PHP - it is stateless. That means that no information is propagated from one script execution to another - or in other words we have neitehr an application server nor persistent variables. regards marcus Monday, February 16, 2004, 7:1

[PHP-DEV] Re: Statics and PHP5

2004-02-16 Thread Dave Peckham
Hi all, My initial response to Jonathan has me thinking more about this, and a higher level. I guess I want to hear from the Zend guys about their intentions of PHP as an app server. IMHO, that's the right direction. For example, when PHP is loaded by the web server, it's only loaded once, and i

[PHP-DEV] Re: Statics and PHP5

2004-02-16 Thread Dave Peckham
Jonathan, Thanks for the reply. Actually, my question was not a "how to use", but definitely a "what are you doing?" intended for the PHP authors (i.e. the Zend folks). Logging is a great example of what I'd like to do, but won't work in the current PHP5 implementation. If you write a Logger clas

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2

2004-02-16 Thread Hans Lellelid
Hi - Ard Biesheuvel wrote: Hans Lellelid wrote: Personally as PHP developer (as opposed to internals developer) I am not in favor of having an interface, because I want to know that try { // ... } catch (Exception $e) { // ... } will catch *all* exceptions thrown by any libraries I choose t

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2

2004-02-16 Thread Ard Biesheuvel
Hans Lellelid wrote: Personally as PHP developer (as opposed to internals developer) I am not in favor of having an interface, because I want to know that try { // ... } catch (Exception $e) { // ... } will catch *all* exceptions thrown by any libraries I choose to use, etc. Mixing the inte

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

2004-02-16 Thread Stephane Drouard
== Quote from Andi Gutmans ([EMAIL PROTECTED])'s article > Marcus didn't mean it adds complexity to the code but to PHP. It's > obviously quite easy to implement this interface; implementation was never > a problem. > I don't really care too much if we have such an interface or not, although > I do

[PHP-DEV] PHP5beta4: Problem using extensions or include path on Windows XP

2004-02-16 Thread Erik Franzén
I am trying to get PHP5beta4 work on my Win XP Pro machine as a module in apache 1.3.29. When I am starting apache I am getting an error saying that php5ts.dll has crashed. This happens when: a) When I enable any extension in php.ini b) When I insert a include path i php.ini Path to the php5b4

Re: [PHP-DEV] Re: About bug #26753 and zend_register_list_destructors()

2004-02-16 Thread Jani Taskinen
On Mon, 16 Feb 2004, Andi Gutmans wrote: >It seems to me that the difference is in the dtor() callback's parameters. >I'm not sure why type_name is not passed to >zend_register_list_destructors(). It probably did not exist when it was >originally written. Zeev might know? :) >I guess we

Re: [PHP-DEV] Re: [PHP-QA] Java / PHP5 release

2004-02-16 Thread Wez Furlong
Most recent changes in b4 must have broken it then :-/ - Original Message - From: "Jakes Potgieter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 16, 2004 3:00 PM Subject: Re: [PHP-DEV] Re: [PHP-QA] Java / PHP5 release > There is no java extension in it? > > > "Wez

Re: [PHP-DEV] Re: [PHP-QA] Java / PHP5 release

2004-02-16 Thread Jakes Potgieter
There is no java extension in it? "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You can find the windows binary for it in this zip: > http://www.php.net/get/pecl-5.0.0b4-Win32.zip/from/a/mirror > > If you're on unix, you need to check out the pecl/rpc > module. > > I

[PHP-DEV] static variables and the notion of a classloader

2004-02-16 Thread Dave Peckham
Hi dev guys, I'm having a bit of difficulty understanding the behaviour of the new static variables functionality in PHP5. I wrote this test: To my surprise, the count does not increment on each page load. Obviously this means that there is no equivalent to the classloader concept. So the class

[PHP-DEV] instanceof has higher precedence than casts

2004-02-16 Thread Jan Lehnardt
Hi, some dude on IRC found out that php -r 'var_export((object)1 instanceof stdClass);'; results in class stdClass { public $scalar = false; } IMHO it should just return true. The ZEND_ENGINE file doesn't state anything about the precedence of instanceof. The fix is pretty simple and a patch to z

Re: [PHP-DEV] Re: [PHP-QA] Java / PHP5 release

2004-02-16 Thread Wez Furlong
You can find the windows binary for it in this zip: http://www.php.net/get/pecl-5.0.0b4-Win32.zip/from/a/mirror If you're on unix, you need to check out the pecl/rpc module. It compiles but has not been tested, and doesn't really have a maintainer. Good luck. --Wez. - Original Message

[PHP-DEV] Re: [PHP-QA] Java / PHP5 release

2004-02-16 Thread Derick Rethans
On Mon, 16 Feb 2004, Jakes Potgieter wrote: > "Derick Rethans" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Mon, 16 Feb 2004, Jakes Potgieter wrote: > > > > > I see the java ext has'nt been added to the PHP5 beta 4 release. I > > > know that there is a current drive with Ze

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2

2004-02-16 Thread Hans Lellelid
Andi Gutmans wrote: Hey, Marcus didn't mean it adds complexity to the code but to PHP. It's obviously quite easy to implement this interface; implementation was never a problem. I don't really care too much if we have such an interface or not, although I do think that it just makes things comp

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2

2004-02-16 Thread Hans Lellelid
Andi Gutmans wrote: Hey, Marcus didn't mean it adds complexity to the code but to PHP. It's obviously quite easy to implement this interface; implementation was never a problem. I don't really care too much if we have such an interface or not, although I do think that it just makes things comp

Re: [PHP-DEV] extending interfaces - fringe behavior

2004-02-16 Thread Zeev Suraski
At 07:55 16/02/2004, Hans Lellelid wrote: I have a need in a current application to extend interfaces and possibly re-define (change signature) some of the inherited methods in the child interface. e.g. interface Foo { public function __construct(MyCls $var); public function myF

Re: [PHP-DEV] Re: About bug #26753 and zend_register_list_destructors()

2004-02-16 Thread Andi Gutmans
At 09:25 AM 2/16/2004 +0100, Derick Rethans wrote: On Mon, 16 Feb 2004, Andi Gutmans wrote: > It seems to me that the difference is in the dtor() callback's parameters. > I'm not sure why type_name is not passed to > zend_register_list_destructors(). It probably did not exist when it was > origina

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

2004-02-16 Thread Andi Gutmans
Hey, Marcus didn't mean it adds complexity to the code but to PHP. It's obviously quite easy to implement this interface; implementation was never a problem. I don't really care too much if we have such an interface or not, although I do think that it just makes things complex and I doubt almos

Re: [PHP-DEV] Re: About bug #26753 and zend_register_list_destructors()

2004-02-16 Thread Derick Rethans
On Mon, 16 Feb 2004, Andi Gutmans wrote: > It seems to me that the difference is in the dtor() callback's parameters. > I'm not sure why type_name is not passed to > zend_register_list_destructors(). It probably did not exist when it was > originally written. > I guess we can either fix the compar

[PHP-DEV] Re: About bug #26753 and zend_register_list_destructors()

2004-02-16 Thread Andi Gutmans
It seems to me that the difference is in the dtor() callback's parameters. I'm not sure why type_name is not passed to zend_register_list_destructors(). It probably did not exist when it was originally written. I guess we can either fix the comparison, change zend_register_list_destructors() to