Re: [PHP-DEV] Re: PHP 5.3.1 RC 1

2009-08-07 Thread Lewis Wright
2009/8/7 Andre Hübner > http://bugs.php.net/bug.php?id=48880 is reason enough to want a >>> release soon - PHP 5.3 died a very fast death in production here. >>> >> > for me too. this bug makes 5.3.0 unusable for me. svn is not an option for > production environment. > > Thanks, > Andre > > > Y

Re: [PHP-DEV] Supporting ArrayObject in array_* functions

2009-07-30 Thread Lewis Wright
2009/7/30 David Coallier > > > > What do you think about the possibility to support ArrayObject > > instances in array_* functions? > > If you all agreed on this, I can definately help to complete the > > patch, but I need some initial guidance to finish at least the first > > function. > > > > I

Re: [PHP-DEV] Type hinting - Request for Discussion

2009-07-10 Thread Lewis Wright
2009/7/10 Alain Williams > On Fri, Jul 10, 2009 at 01:35:45PM +0300, Ionut G. Stan wrote: > > On 7/10/2009 13:23, Giovanni Giacobbi wrote: > > >On Fri, Jul 10, 2009 at 02:44:52AM +0200, troels knak-nielsen wrote: > > >[...] > > > > > >>For example, instead of: > > >> > > >> function addFive(i

Re: [PHP-DEV] Type hinting - Request for Discussion

2009-07-10 Thread Lewis Wright
2009/7/10 Ionut G. Stan > On 7/10/2009 13:23, Giovanni Giacobbi wrote: > >> On Fri, Jul 10, 2009 at 02:44:52AM +0200, troels knak-nielsen wrote: >> [...] >> >> >>> For example, instead of: >>> >>> function addFive(int $x) { >>> return $x + 5; >>> } >>> >>> You would simply do: >>> >

Re: [PHP-DEV] Re: Flexible type hinting

2009-07-02 Thread Lewis Wright
2009/7/2 Paul Biggar > On Thu, Jul 2, 2009 at 3:17 PM, Jonathan Bond-Caron > wrote: > > From userland, I'm a big fan of this proposal / agree to the principle > although I'm not convinced that > > > > function($quantity) > > function(int $quantity) > > function(+int $quantity) > > function(-int $

Re: [PHP-DEV] The constant use of isset()

2009-05-12 Thread Lewis Wright
Regarding ifsetor, what's wrong with just using this: isset($myvar) OR $myvar = 'i am set'; It works in just the same way and has no problems. I agree it would be great though if there could be a function to retrieve a variable's value if it exists, without throwing an error if it doesn't exist.

Re: [PHP-DEV] Update to Zend Highlighter

2009-04-02 Thread Lewis Wright
Why not allow a class prefix as an option to the function? Eg: 'php-highlighted-' as the prefix would produce things like 'php-highlighted-keyword'. That way there's no risk of collision and there's no need to over-complicated things. 2009/4/2 Robert Cummings : > On Thu, 2009-04-02 at 09:13 -07

Re: [PHP-DEV] Patch and test cases too for

2009-03-18 Thread Lewis Wright
Exactly. In javascript terms, that is what you'd expect since: array(1=>'test') ..Isn't a valid array. 2009/3/17 Scott MacVicar : > On 11 Mar 2009, at 19:25, Christopher Östlund wrote: > >> I think this behavior is a bit odd too: >> >> php -r "echo json_encode(array(0=>'test'));" // ["test"] >>

Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread Lewis Wright
I think what you're doing is effectively the same as doing: $fb = new Part .''. SubPart(); So basically concatenating a new instance of Part, with the results from the function SubPart. Try defining Part as a class and see what error you get. If I'm right, you'll get an undefined function error.