Re: [PHP-DEV] Re: Why isn't base class constructors or destructors required to be called? (was: Re: [PHP-DEV] Return type hints)

2006-09-15 Thread Marian Kostadinov
Well, PHP is a loosely typed language. You have much more freedom when you write a code. Constructors are not an exception. It is very convinient that you may not call the parent constructor and many people do it, believe me! And also the flag for the internal classes that has been discussed is ma

Re: [PHP-DEV] What's wrong with dl?

2006-09-15 Thread Edin Kadribasic
Michael B Allen wrote: > Our CLI module installer uses dl() to manually load the module and > validate some basic functionality. This is a very nice feature and I'm > disappointed to see it has been deprecated. Will there be any equivalent > functionality moving forward? The extension directive is

Re: [PHP-DEV] Re: Why isn't base class constructors or destructors required to be called? (was: Re: [PHP-DEV] Return type hints)

2006-09-15 Thread Terje Slettebø
>From: "Marian Kostadinov" <[EMAIL PROTECTED]> >Well, PHP is a loosely typed language. You have much more freedom when you >write a code. Constructors are not an exception. It is very convinient that >you may not call the parent constructor and many people do it, believe me! Why would you not cal

Re: [PHP-DEV] Re: Why isn't base class constructors or destructorsrequired to be called?

2006-09-15 Thread Terje Slettebø
Hi Christian. Thanks for your reply, but I would appreciate it if people read my posting properly, before replying: I have _not_ asked for this to be changed, I have just asked for _reasons_ for the current situation, and pointed out potential problems with it. I think that's reasonable request.

Re: [PHP-DEV] Re: Why isn't base class constructors or destructors required to be called? (was: Re: [PHP-DEV] Return type hints)

2006-09-15 Thread Robert Deaton
On 9/15/06, Terje Slettebø <[EMAIL PROTECTED]> wrote: >From: "Marcus Boerger" <[EMAIL PROTECTED]> > PHP is not C++ and speaking of constructors and destrcutors PHP goes morethe > Delphi way. I'd also like to know _why_ constructors/destructors are less fit for PHP, than these other languages?

Re: [PHP-DEV] What's wrong with dl?

2006-09-15 Thread Michael B Allen
On Fri, 15 Sep 2006 09:10:49 +0100 Edin Kadribasic <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > Our CLI module installer uses dl() to manually load the module and > > validate some basic functionality. This is a very nice feature and I'm > > disappointed to see it has been deprecated. W

[PHP-DEV] Two modules w/ different instances of same lib causes crash

2006-09-15 Thread Michael B Allen
My extension (plexsso.so) is dymanically linked with a library. That library (libplexsso.so) is a statically linked collection of libs including a custom version of Heimdal Kerberos (libkrb5.a). I have found that if another module is linked with the stock Heimdal (e.g. pgsql.so dynamically in this

[PHP-DEV] CVS Account Request: wudicgi

2006-09-15 Thread Wudicgi
Managing the source code of PEAR Crypt_XXTEA. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Two modules w/ different instances of same lib causes crash

2006-09-15 Thread Michael B Allen
RTLD_DEEPBIND fixes this problem using a test program and two minimalistic DSOs to emulate the namespace clash problem. But I see PHP has support for RTLD_DEEPBIND: # if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT) ... # elif defined(RTLD_DEEPBIND) ... # else ... # endif On

Re: [PHP-DEV] Two modules w/ different instances of same lib causes crash

2006-09-15 Thread Michael B Allen
On Fri, 15 Sep 2006 15:23:16 -0400 Michael B Allen <[EMAIL PROTECTED]> wrote: > So now, I have to wonder why my customer had a problem in the first place. > > Based on the above macros, is it possible that RTLD_DEEPBIND could NOT > be chosen? The customer is using 4.3.4 which did not have the RT