Re: [PHP-DEV] Add deg2grad() and grad2deg() in PHP5.3

2008-05-21 Thread Antony Dovgal
On 20.05.2008 22:22, Kalle Sommer Nielsen wrote: Greetings internals I've made two functions that allows convertion between degress and gradians, below is a pastebin of the functions as that would look in math.c: http://www.phpfi.com/318450 Functions that can be implemented in one line of

Re: [PHP-DEV] magic quotes finale

2008-05-21 Thread Richard Quadling
2008/5/20 Jonathan Bond-Caron [EMAIL PROTECTED]: +1 here A summary: PHP6 MUST not allow setting magic quotes PHP6 MUST trigger a fatal error when attempting to set magic quotes (php.ini or set_magic_quotes_runtime()) PHP6 MUST allow getting magic quotes info (always false) PHP5.3 MUST

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Antony Dovgal
On 21.05.2008 00:21, Steph Fox wrote: I think the test script and ZE problems should be resolved first... And to do that we need to drop the Unicode Switch =) plus I just discovered that my php.ini isn't being found when I run commandline tests (e.g. php -r var_dump(strcasecmp()); doesn't

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Steph Fox
Hey Tony, First off, thanks for caring :) And to do that we need to drop the Unicode Switch =) Not fix the streams issue? I committed a fix for this one a minute ago. Thanks! The patch is as easy as this: http://dev.daylessday.org/diff/fix_unicode_function_names.diff This is the

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Antony Dovgal
On 21.05.2008 15:12, Steph Fox wrote: Hey Tony, First off, thanks for caring :) And to do that we need to drop the Unicode Switch =) Not fix the streams issue? That, too =) -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Antony Dovgal
On 21.05.2008 15:12, Steph Fox wrote: Hey Tony, First off, thanks for caring :) And to do that we need to drop the Unicode Switch =) Not fix the streams issue? Felipe has taken care of that issue, so now we have only one uber-major issue left. -- Wbr, Antony Dovgal -- PHP Internals -

[PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-21 Thread Steph Fox
I looked into it again (and found things I didn't know before). This one's bugging me enough that I braved the Wiki: http://wiki.php.net/rfc/calltimebyref - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-21 Thread Olivier Hill
Hello Steph, Is it me, or the wiki post talks about param and return by ref? Return by ref is not related to call-time pass by ref, is it? Anyway, my opinion is clear on that one: shoot that dead cow. It's been deprecated for years, and you should declare your function prototypes with the param

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-21 Thread Steph Fox
Is it me, or the wiki post talks about param and return by ref? Return by ref is not related to call-time pass by ref, is it? See zend_compile.c. Anyway, my opinion is clear on that one: shoot that dead cow. It's been deprecated for years, and you should declare your function prototypes with

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-21 Thread Steph Fox
For anyone else who doesn't read to the end... Anyway, my opinion is clear on that one: shoot that dead cow. It's been deprecated for years, and you should declare your function prototypes with the param by ref anyway if you need it. All I'm asking is that we throw a warning by default in

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Steph Fox
Not fix the streams issue? Felipe has taken care of that issue, so now we have only one uber-major issue left. Your patch? Or the changed error message? FWIW the --EXPECT-- sections on those tests are different in 5_3 and would pass, so maybe they should just match those? - Steph --

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Antony Dovgal
On 21.05.2008 17:50, Steph Fox wrote: Not fix the streams issue? Felipe has taken care of that issue, so now we have only one uber-major issue left. Your patch? Or the changed error message? Yes, I mean that problem with storing string/Unicode function names. That patch seems to be no

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Steph Fox
Yes, I mean that problem with storing string/Unicode function names. That patch seems to be no good, run-tests.php doesn't work after I apply it (some functions are not found). shrug / it'll be a lot easier to see what's going on if/when the UG(unicode) if'n'butting goes. There's obviously a

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Antony Dovgal
On 21.05.2008 17:58, Steph Fox wrote: Yes, I mean that problem with storing string/Unicode function names. That patch seems to be no good, run-tests.php doesn't work after I apply it (some functions are not found). shrug / it'll be a lot easier to see what's going on if/when the UG(unicode)

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-21 Thread Hector Santos
Steph Fox wrote: I looked into it again (and found things I didn't know before). This one's bugging me enough that I braved the Wiki: http://wiki.php.net/rfc/calltimebyref It has: | Proposal | | Switch allow_call_time_pass_reference off by default in PHP_5_3 | branch. At present there is

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-21 Thread LEW21
Sometimes call time pass by reference is useful, for example when you want to make it possible to omit an param (normally passed by reference) by setting null. With no call time pass by reference, programmers are required to write: $null = null; foo($null); Deleting it isn't a good idea, it

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-21 Thread Andrei Zmievski
Nothing premature about it. It was time. UG(unicode) checks are still secondary I think - they don't prevent us from doing tests and moving forward, although cleaning them up would be nice. pack() should take binary strings only, methinks. -Andrei Steph Fox wrote: I would've hoped that PHP

Re: [PHP-DEV] Class Properties in Interfaces?

2008-05-21 Thread Stanislav Malyshev
Hi! Maybe the solution is simply to throw an E_STRICT when unset()-ting an interface property? My understanding is E_STRICT is to push the I'd have no problem with that provided it doesn't cost performance (i.e. no additional hash lookups, etc.) and doesn't break any of __unset, etc.

[PHP-DEV] How to abort MINIT?

2008-05-21 Thread Michael B Allen
I provide an INI property to stop my extension from loading fully like: if (strcmp(sapi_module.name, cli) == 0 INI_STR(plexcel.sapi.cli) INI_BOOL(plexcel.sapi.cli) == 0) { return; } But the extension is still loaded. It's just not initialized.

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-21 Thread Felipe Pena
Hello Em Qui, 2008-05-22 às 05:12 +0300, Stan Vassilev | FM escreveu: Was this discussed before on the list? Yes. http://marc.info/?l=php-internalsm=119995972028293w=2 Regards, Stan Vassilev -- Regards, Felipe Pena. -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-21 Thread Stanislav Malyshev
Hi! $a = [[1, 2], [3, 4], 5, 6]; Proposed twice at least, but PHP developer community doesn't seem to like it. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] How to abort MINIT?

2008-05-21 Thread Stanislav Malyshev
Hi! I provide an INI property to stop my extension from loading fully like: if (strcmp(sapi_module.name, cli) == 0 INI_STR(plexcel.sapi.cli) INI_BOOL(plexcel.sapi.cli) == 0) { return; } But the extension is still loaded. It's just not