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
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
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
(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
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
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
/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
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
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
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
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
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
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
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
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]
--
15 matches
Mail list logo