Re: [PHP-DEV] Re: Static weirdness..

2004-02-23 Thread Josh Fuhs
Quoting Marcus Boerger <[EMAIL PROTECTED]>: > In fact it may be related. As i said before it is one of the ways to get to > a class. > The class is related to the object. The method is related to the class. Is the method related to the object? It is not. There are many indirect ways to get to a

Re: [PHP-DEV] Re: Static weirdness..

2004-02-22 Thread Josh Fuhs
> Quoting Josh Fuhs <[EMAIL PROTECTED]>: > If I'm not mistaken, Java does not allow calls to static methods via > object instances. Sorry, I retract this. Someone just showed me an example of it. But it still seems like a bad practice. Josh -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: Static weirdness..

2004-02-21 Thread Josh Fuhs
Sorry, mis-click. Quoting Josh Fuhs <[EMAIL PROTECTED]>: > If I'm not mistaken, Java does not allow calls to static methods via object > instances. It simply doesn't make sense to couple the unecessary object > instance > into a method call in which it has absolu

Re: [PHP-DEV] Re: Static weirdness..

2004-02-21 Thread Josh Fuhs
If I'm not mistaken, Java does not allow calls to static methods via object instances. It simply doesn't make sense to couple the unecessary object instance into a method call in which it has absolutely no bearing. If the object has nothing to do with the operation, then there's no point for it to

[PHP-DEV] switch($string{0}) segfault in 5.0.0b3

2004-01-22 Thread Josh Fuhs
I've included a script which reproduces this bug. System details include: i386 arch Linux-2.4.23 Apache-1.3.27 The configuration is standard with MySQL. Using php.ini-dist with some include_path modifications. The included script also demonstrates a workaround until this can b

[PHP-DEV] When can I expect changes to be applied

2003-10-12 Thread Josh Fuhs
Hello, I requested some time ago that zend_parse_parameters() be altered to accept "Z" as a parameter type in order to be able to retrieve zval**'s instead of zval*'s. I believe I was told that this change would be applied, but I haven't yet seen it appear in any of the recent distributions. I

[PHP-DEV] Weird behavior for $this variable in PHP4

2003-07-11 Thread Josh Fuhs
Hello, I'm getting a problem with $this being defined where it shouldn't be. The code that I'm writing is a little weird in order to compensate for the lack of some OO features in PHP4. The PHP script at the bottom should give the behavior I'm referring to. Is PHP5 in a more-or-less stable state

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-11 Thread Josh Fuhs
gs as clearly as I understand them. If I'm mis-understanding something, please let me know. Josh Quoting Andi Gutmans <[EMAIL PROTECTED]>: > I don't have any real problem with this patch. However, I didn't quite > understand why you need it. Can you please remind me

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-10 Thread Josh Fuhs
How will I know if this gets included in the CVS source repository? If it doesn't, could someone please explain why not and give me an alternative solution to my problem? I'm currently using the patched version of PHP and I don't want to upgrade unless I know this change is included. Thanks Jos

Re: [PHP-DEV] [PATCH] Add 'Z' flag to zend_parse_parameters*()

2003-07-08 Thread Josh Fuhs
Certainly. One cannot use the convert_to_*_ex() functions unless you have a zval**. A couple people have suggested that I just use "z/", but this forces a separation and I may not need that. I want to be able to pass an array or an object to a group of functions. An object simply gets converte