Re: [PHP-DEV] Return type hints

2008-04-06 Thread Timothy Chandler
I guess I should say it before anyone else does... "It's not the PHP way" - Timothy Chandler Simple Site Solutions Felipe Pena wrote: Hello ladies and gentlemen, I made a patch that implements an experimental return type hint, therefore we need discuss much about this yet, right? :) My idea

Re: [PHP-DEV] CVS Account Request: mlively

2008-04-06 Thread Jeremy Privett
Mike Lively wrote: Maintenance on runkit/classkit. I've talked with pollita and she seems happy about it ;) I'm working on a project that would benefit from runkit, so this would be lovely. There was a bug that was giving me grief, previously. If I remember what it was, I'll let you know

[PHP-DEV] CVS Account Request: mlively

2008-04-06 Thread Mike Lively
Maintenance on runkit/classkit. I've talked with pollita and she seems happy about it ;) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Return type hints

2008-04-06 Thread Mike Lively
On Sun, Apr 6, 2008 at 8:41 PM, Felipe Pena <[EMAIL PROTECTED]> wrote: > - PHP types > > function (string) foo(...) { } // Unicode string too > function (object) foo(...) { } // Strict > function (array) foo(...) { } // Strict > function (bool) foo(...) { } // Strict > function(int) foo(...

Re: [PHP-DEV] Return type hints

2008-04-06 Thread Cristian Rodríguez
Felipe Pena escribió: Hello ladies and gentlemen, I made a patch that implements an experimental return type hint, therefore we need discuss much about this yet, right? :) Thanks for raising this issue !! function(int) foo(...) { } // Accepts numeric string function (double) foo(...) {

[PHP-DEV] Return type hints

2008-04-06 Thread Felipe Pena
Hello ladies and gentlemen, I made a patch that implements an experimental return type hint, therefore we need discuss much about this yet, right? :) My idea uses (php-type) and +className as notation, see below. - PHP types function (string) foo(...) { } // Unicode string too function (object)

Re: [PHP-DEV] intl naming

2008-04-06 Thread Stanislav Malyshev
Hi! What about a) an "ICU" prefix? I don't think it's better than intl_, having disadvantage of referring to particular library rather than function (like glibc_file_get_contents instead of file_get_contents). b) daring the leap and use namespaces, making it 5.3+ only (I know, that wasn't

[PHP-DEV] Small test case fixes / observations (php-5.2.6_rc4)

2008-04-06 Thread Christian Hoffmann
Heya, while building and testing a minimal version of PHP and as such disabling the session extension, I discovered that ext/standard/tests/general_functions/bug44394_2.phpt fails without the session extension being enabled. I created a patch to fix that [1]. On a sidenote, some tests seem t

Re: [PHP-DEV] What is the current state of PHP6?

2008-04-06 Thread Andrei Zmievski
Lester Caine wrote: I KEEP asking what is holding up making a beta release of PHP6, and I see nothing in the 2005 meeting that is anything more than a restructure and recompile using unicode as the base. MOST of the other things are just removing things that are now normally switched off anyway

[PHP-DEV] [PATCH] LSB - forward_static_call function patch (with tests)

2008-04-06 Thread Mike Lively
I have created a few tests for the patch and updated to the patch to the tip of both php6 and php5.3 http://ds-o.com/Patches/lsb.forward_static_call.v3.tar.gz A link to just the patch: http://ds-o.com/Patches/lsb.forward_static_call.v3.patch It would be fantastic to get it reviewed and commit

Re: [PHP-DEV] Re: namespace implementation (irritating warning and autoload)

2008-04-06 Thread Julian Reich
The patch didn't apply cleanly against current PHP_5_3. Therefore I attached an adapted version. Sorry, attachment missing: http://www.jreich.com/php/name_resolution.patch Regards, Julian Reich -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/u

Re: [PHP-DEV] Re: namespace implementation (irritating warning and autoload)

2008-04-06 Thread Julian Reich
Hi Jessie, Regarding the name resolution rules, I posted a patch a few months ago with what I think is a more reasonable lookup order (http://news.php.net/php.internals/34097 ), but did not get much feedback. Would you like to try it out? (let me know if it doesn't apply cleanly against the

Re: [PHP-DEV] Re: namespace implementation (irritating warning and autoload)

2008-04-06 Thread Julian Reich
Hi, This is a clear bug, please report it at bugs.php.net Done: http://bugs.php.net/44653 Since "use SomeName" does the same as "use ::SomeName" dropping the warning also be an option. And if we split of "use" into "use namespace" and "use class" we could resolve ambiguous calls where a

[PHP-DEV] Re: Bug #44654: wired syntax error for #

2008-04-06 Thread Xuefer
i'm having trouble with the bug http://bugs.php.net/bug.php?id=44654 i just reported. i'm not sure if it's a expected behavoir or a bug introduced by re2c or whatever patch. On Sun, Apr 6, 2008 at 10:19 PM, PHP Bug Database <[EMAIL PROTECTED]> wrote: > From: xuefer at gmail dot com >

[PHP-DEV] Re: namespace implementation (irritating warning and autoload)

2008-04-06 Thread Greg Beaver
Julian Reich wrote: Hi, I recently started porting an application to PHP 5.3. 1. While testing the new namespace implementation I noticed the following: Executing the code above results in a warning: "The use statement with non-compound name 'Test1' has no effect in [...]". I understand the r