Re: [PHP-DEV] delete in PHP

2004-06-01 Thread Adam Bregenzer
unction, even though it may, arguably, be bad coding style. [1] http://www.php.net/unset [2] http://www.php.net/count -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Use of 'self' in static function in subclass

2004-06-01 Thread Adam Bregenzer
thod in the same class that respects inheritance. If a developer wanted a call to not respect inheritance the class's name can be used instead of self with the same results (increased code maintenance should the class name change notwithstanding). -- Adam Bregenzer [EMAIL PROTECTED] http

Re: [PHP-DEV] www.php.net RC1 News - Front Page

2004-03-18 Thread Adam Bregenzer
des an object-oriented interface in addition to its functional interface; as well as support for many of MySQL's new features, such as prepared statements. -Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

Re: [PHP-DEV] Adding a few debug helpers to php4.x

2004-03-03 Thread Adam Bregenzer
(dis)allow_copies(mixed var) What about implementing this directly in php? You could use trigger_error in the constructor to stop the script from executing if the object is instantiated more than once. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP I

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

2004-02-17 Thread Adam Bregenzer
r($var_name) { // mark variable as unlocked shmSetVal($var_name . '-lock', '0'); } Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-02-17 Thread Adam Bregenzer
y you can use a database or shared memory to implement global variables and save objects/static variables/whatever into them. Of course, once you have variables available to multiple instances of PHP you will have to deal with locking issues. Regards, Adam [1] http://adam.bregenzer.net/php/static

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

2004-02-17 Thread Adam Bregenzer
/19/exceptions.html Exception "best practices" in Java. http://www.hutteman.com/weblog/2003/08/31-118.html A good description of the importance of using unchecked exceptions. http://www.darrenhobbs.com/archives/000411.html He has a great perspective on checked exceptions. http://www.sole

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

2004-02-16 Thread Adam Bregenzer
t's user base. In fact I am now wondering if exceptions aren't a potential trap that will cause more problems than benefits. I like that PHP != Java. So, how about prototype inheritance? (J.K.!) Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP In

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-15 Thread Adam Bregenzer
ns should be required to inherit Exception, only implement Throwable. Another example is using exceptions to throw validation errors. Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New destructors implementation

2004-02-06 Thread Adam Bregenzer
de to the destructor to handle these outside of any instance? -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] RC1

2004-02-04 Thread Adam Bregenzer
ns, or are you suggesting that it should be > >enabled by default? > > I think we should consider both. +1 I'm all for including SOAP, I am on the fence about enabling it by default. I would say if it relies on an external library that would otherwise not be needed for a default

Re: [PHP-DEV] New exceptions mechanism

2004-02-03 Thread Adam Bregenzer
would be willing to make a go at it, if no one is opposed and there is still time to add it to php5... -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New exceptions mechanism

2004-02-03 Thread Adam Bregenzer
an extra parameter in there. Is there no better way? Thanks again, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New exceptions mechanism

2004-02-03 Thread Adam Bregenzer
ere is my post for reference: http://marc.theaimsgroup.com/?l=php-general&m=107575408628272&w=2 If there is another way to achieve what I am looking for I would be very appreciative if someone could point me in the right direction. Regards, Adam -- Adam Bregenzer [EMAIL P

Re: [PHP-DEV] __clone() implementation

2004-02-02 Thread Adam Bregenzer
bit copy would be a good thing. What if I do $copy = clone $some_obj; when $some_obj's class and all its parent classes do not implement __clone? This could be important if someone were to write proper php5 code that used classes written for php4. -- Adam Bregenzer [EMAIL PROTECTED] --