Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-19 Thread Sanford Whiteman
But I just wanted to point out that this is something the author (and I) would never expect to happen ... in_array(123abc, array(3, 7, 123, 28)) === true Well, would you never expect select ( '123abc' in (3,7,123,28) ) to return boolean true in SQL? Because it does. Me, I'm happy with

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-19 Thread Lazare Inepologlou
Hello Simon, in_array(123abc, array(3, 7, 123, 28)) === true This is a pointless example, because the first argument of in_array is of type mixed and not int. So, this may cause many headaches, but it is irrelevant to the discussion about scalar type hints. Lazare INEPOLOGLOU Ingénieur

[PHP-DEV] php-src is now on git

2012-03-19 Thread David Soria Parra
Hi Internals, The initial migration is done and initial testing was successful. http://git.php.net/?p=php-src.git;a=summary http://github.com/php/php-src Please note that some branches and tags were renamed to make the repository cleaner. Please checkout the repository and play around. I

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Simon Schick
2012/3/19 David Soria Parra d...@php.net: Hi Internals, The initial migration is done and initial testing was successful.  http://git.php.net/?p=php-src.git;a=summary  http://github.com/php/php-src Please note that some branches and tags were renamed to make the repository cleaner.

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Stas Malyshev
Hi! The initial migration is done and initial testing was successful. Thanks David! This is awesome! Great work and I think it will make developing PHP and contributing to the project much easier. I think we should do php.net frontpage announcement. Please note that some branches and tags

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread David Soria Parra
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/19/2012 06:18 PM, Stas Malyshev wrote: Hi! The initial migration is done and initial testing was successful. Thanks David! This is awesome! Great work and I think it will make developing PHP and contributing to the project much easier.

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Derick Rethans
On Mon, 19 Mar 2012, David Soria Parra wrote: There is also an FAQ at https://wiki.php.net/vcs/gitfaq. I can't find in the FAQ what's happening with the commit mails. Can you add that (and CC this list too)? (Refering to The git push/commit email notification process is under discussion (Jan

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread David Soria Parra
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/19/2012 06:16 PM, Simon Schick wrote: 2012/3/19 David Soria Parra d...@php.net: Hi, David Thanks for this great step! As I quickly viewed into the github-repository I recognized the big list of branches ... 52 is quite a big list .. I

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Stas Malyshev
Hi! I don't know if someone asked just that before: Are there plans reducing this list? Branches (at least to me) seems to be something like big features, bugfixes or releases that are or could actively be developed in the future. With git, cost of branches is near zero, so we don't need to

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread David Soria Parra
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/19/2012 06:20 PM, Derick Rethans wrote: On Mon, 19 Mar 2012, David Soria Parra wrote: There is also an FAQ at https://wiki.php.net/vcs/gitfaq. I can't find in the FAQ what's happening with the commit mails. Can you add that (and CC this

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Derick Rethans
On Mon, 19 Mar 2012, David Soria Parra wrote: On 03/19/2012 06:20 PM, Derick Rethans wrote: On Mon, 19 Mar 2012, David Soria Parra wrote: There is also an FAQ at https://wiki.php.net/vcs/gitfaq. I can't find in the FAQ what's happening with the commit mails. Can you add that (and

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread David Soria Parra
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [git] branch PHP-5.4 updated. | [git] commit ab33e5176ae ext/lib/date Can we strip out as much nonsense from there as possible? I am mostly interested in the short part of the commit message; and not the words commit, and the hash. we can

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Christopher Jones
On 03/19/2012 10:19 AM, David Soria Parra wrote: Also a small thing - gitfaq recommends git config core.autocrlf input, but we have some files in win32 which do not work with this setting (at least on my Mac). ah okay, can you remove it please? Thanks Done. -- Email:

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
Hey, On Mon, Mar 19, 2012 at 8:24 AM, David Soria Parra d...@php.net wrote: Hi Internals, The initial migration is done and initial testing was successful. http://git.php.net/?p=php-src.git;a=summary http://github.com/php/php-src Please note that some branches and tags were renamed to

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
Also, On Mon, Mar 19, 2012 at 11:21 AM, Kris Craig kris.cr...@gmail.com wrote: Hey, On Mon, Mar 19, 2012 at 8:24 AM, David Soria Parra d...@php.net wrote: Hi Internals, The initial migration is done and initial testing was successful. http://git.php.net/?p=php-src.git;a=summary

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
Me again, On Mon, Mar 19, 2012 at 11:34 AM, Kris Craig kris.cr...@gmail.com wrote: Also, On Mon, Mar 19, 2012 at 11:21 AM, Kris Craig kris.cr...@gmail.com wrote: Hey, On Mon, Mar 19, 2012 at 8:24 AM, David Soria Parra d...@php.net wrote: Hi Internals, The initial migration is done

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Christopher Jones
On 03/19/2012 11:34 AM, Kris Craig wrote: I noticed that the workflow page recommends using the SSH URL for cloning. However, isn't that one much more limited access? I.e. for myself at least, it just prompts for a password (presumably for the SSH git user) which of course I don't have. Is

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Alexander Moskaliov
Really it was a mistake to do this option recommended (I did it =)). But I think for webprojects and documentation will need to mention this option. With regards, Alexander Moskaliov ir...@irker.net 2012/3/19 Christopher Jones christopher.jo...@oracle.com On 03/19/2012 10:19 AM, David Soria

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
Hey Chris, On Mon, Mar 19, 2012 at 11:40 AM, Christopher Jones christopher.jo...@oracle.com wrote: On 03/19/2012 11:34 AM, Kris Craig wrote: I noticed that the workflow page recommends using the SSH URL for cloning. However, isn't that one much more limited access? I.e. for myself at

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
On Mon, Mar 19, 2012 at 11:46 AM, Alexander Moskaliov ir...@irker.netwrote: Really it was a mistake to do this option recommended (I did it =)). But I think for webprojects and documentation will need to mention this option. With regards, Alexander Moskaliov ir...@irker.net 2012/3/19

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Christopher Jones
On 03/19/2012 11:46 AM, Alexander Moskaliov wrote: Really it was a mistake to do this option recommended (I did it =)). But I think for webprojects and documentation will need to mention this option. With regards, Alexander Moskaliov ir...@irker.net mailto:ir...@irker.net Do you want to

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Simon Schick
2012/3/19 Kris Craig kris.cr...@gmail.com: Hey, Could we modify the workflow to recommend using the --no-ff switch when merging in a feature branch?  This is by and large the recommended approach as it preserves the feature branch's commit history, making it *much*easier to sort through

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
Simon, On Mon, Mar 19, 2012 at 11:55 AM, Simon Schick simonsimc...@googlemail.comwrote: 2012/3/19 Kris Craig kris.cr...@gmail.com: Hey, Could we modify the workflow to recommend using the --no-ff switch when merging in a feature branch? This is by and large the recommended approach

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
FYI- On Mon, Mar 19, 2012 at 8:24 AM, David Soria Parra d...@php.net wrote: Hi Internals, The initial migration is done and initial testing was successful. http://git.php.net/?p=php-src.git;a=summary http://github.com/php/php-src Please note that some branches and tags were renamed to

[PHP-DEV] Re: [PHP-CVS] [git] commit php-src.git: UPGRADING

2012-03-19 Thread Michael Wallner
Shouldn't the commit mails reference the push mail? Looks a bit messy without relations of commit/push mails. On 19 March 2012 20:33, Michael Wallner m...@php.net wrote: Commit: 867d980574ec8086cc40634fbd62af257504b8ea Author: Michael Wallner(m...@php.net)         Mon, 19 Mar 2012 20:15:54

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Alexander Moskaliov
I think we can add it now, because we have already moved to git all web sources. With regards, Alexander Moskaliov ir...@irker.net 2012/3/19 Christopher Jones christopher.jo...@oracle.com Do you want to add it back (now or as appropriate), mentioning webprojects documentation?

[PHP-DEV] TSRMLS_* keywords in PHP source

2012-03-19 Thread Barbu Paul Gheorghe
Hello! What role does the keywords TSRMLS_CC, TSRMLS_DC, TSRMLS_D have when passed along with a argument in PHP's source? For example in this random file: http://lxr.php.net/opengrok/xref/PHP_5_4/ext/intl/formatter/formatter_data.c I don't even know if keyword is the right technical term

Re: [PHP-DEV] TSRMLS_* keywords in PHP source

2012-03-19 Thread Jelle Zijlstra
Those are macros that are defined only if PHP's Thread-Safe Resource Manager is enabled at compile time; it passes in additional information needed by the TSRM. 2012/3/19 Barbu Paul Gheorghe paullik.p...@gmail.com Hello! What role does the keywords TSRMLS_CC, TSRMLS_DC, TSRMLS_D have when

[PHP-DEV] Antw.: [PHP-DEV] php-src is now on git

2012-03-19 Thread dso...@gmx.net
Its a good idea. Go ahead and change it. Gesendet mit meinem HTC - Reply message - Von: Kris Craig kris.cr...@gmail.com An: Simon Schick simonsimc...@googlemail.com Cc: David Soria Parra d...@php.net, internals@lists.php.net Betreff: [PHP-DEV] php-src is now on git Datum: Mo., Mär. 19,

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Simon Schick
2012/3/19 Kris Craig kris.cr...@gmail.com: Simon, Yes that's a great recommendation and it should definitely be included IMHO!  However, the merge.ff option is relatively new and is not available in many older Git clients that are still in use.  So the --no-ff tag will still probably be

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread David Soria Parra
On 2012-03-19, Kris Craig kris.cr...@gmail.com wrote: --f46d043892b5b345eb04bb9cfe02 Content-Type: text/plain; charset=ISO-8859-1 Hey Chris, On Mon, Mar 19, 2012 at 11:40 AM, Christopher Jones christopher.jo...@oracle.com wrote: I sense your hostility but I think you misunderstood my

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
On Mon, Mar 19, 2012 at 1:16 PM, Simon Schick simonsimc...@googlemail.comwrote: 2012/3/19 Kris Craig kris.cr...@gmail.com: Simon, Yes that's a great recommendation and it should definitely be included IMHO! However, the merge.ff option is relatively new and is not available in many

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Christopher Jones
On 03/19/2012 01:31 PM, Kris Craig wrote: I added an entry to the FAQ about the merge.ff option available in newer clients. Would it be more visible if that comment was moved to the Recommended Git Settings section? Chris -- Email: christopher.jo...@oracle.com Tel: +1 650 506 8630

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Gábor Fási
On Mon, Mar 19, 2012 at 21:31, Kris Craig kris.cr...@gmail.com wrote: I don't know off the top of my head which version it was implemented in, but I'm pretty sure it was relatively recent. It was introduced in 1.7.6, that came out around Summer 2011. -- Gábor -- PHP Internals - PHP Runtime

Re: [PHP-DEV] TSRMLS_* keywords in PHP source

2012-03-19 Thread Richard Lynch
On Mon, March 19, 2012 2:45 pm, Barbu Paul Gheorghe wrote: What role does the keywords TSRMLS_CC, TSRMLS_DC, TSRMLS_D have when passed along with a argument in PHP's source? For example in this random file: http://lxr.php.net/opengrok/xref/PHP_5_4/ext/intl/formatter/formatter_data.c I

[PHP-DEV] Re: [PHP-CVS] [git] commit php-src.git: ext/hash/tests/mhash_001.phpt ext/hash/tests/mhash_003.phpt

2012-03-19 Thread Michael Wallner
Should the commit to bugs.php.net hook already work? A link was obviously added to the commit message, but the bug was not commented. Just in case... On 19 March 2012 22:04, Michael Wallner m...@php.net wrote: Commit: 260e77709ddfe9e72e2b7f11393673b6ee18a7f9 Author: Michael

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
On Mon, Mar 19, 2012 at 1:39 PM, Christopher Jones christopher.jo...@oracle.com wrote: On 03/19/2012 01:31 PM, Kris Craig wrote: I added an entry to the FAQ about the merge.ff option available in newer clients. Would it be more visible if that comment was moved to the Recommended Git

Re: [PHP-DEV] PHP5.4 'nannying'

2012-03-19 Thread Richard Lynch
On Sun, March 18, 2012 6:35 am, Reindl Harald wrote: Am 18.03.2012 10:14, schrieb Lester Caine: I think what I am probably looking for is a clean guide as to how code SHOULD be written nowadays in order to avoid the nanny messages since it's certainly not my normal practice after 10 years

[PHP-DEV] Re: [PHP-CVS] [git] commit php-src.git: UPGRADING

2012-03-19 Thread David Soria Parra
On 2012-03-19, Michael Wallner m...@php.net wrote: Shouldn't the commit mails reference the push mail? Looks a bit messy without relations of commit/push mails. they should, it's just not working yet. I will look into it. -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] i hope using set_exception_handler and set_error_handler in php extension code.

2012-03-19 Thread Richard Lynch
On Fri, March 16, 2012 8:33 pm, langwan wrote: i hope using set_exception_handler and set_error_handler in php extension code. hi, all: i write php monitor extension now. 1. question i hope using set_exception_handler or set_error_handler in PHP_RINIT_FUNCTION() for example:

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Christopher Jones
On 03/19/2012 01:31 PM, Kris Craig wrote: Here's what I wound-up doing: The merge entries on the workflow page now contain --no-ff and I added an entry to the FAQ about the merge.ff option available in newer clients. This way we should be covered either way. =) --Kris Is this supported by

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
On Mon, Mar 19, 2012 at 3:07 PM, Christopher Jones christopher.jo...@oracle.com wrote: On 03/19/2012 01:31 PM, Kris Craig wrote: Here's what I wound-up doing: The merge entries on the workflow page now contain --no-ff and I added an entry to the FAQ about the merge.ff option available in

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
Question: On Mon, Mar 19, 2012 at 2:01 PM, Kris Craig kris.cr...@gmail.com wrote: On Mon, Mar 19, 2012 at 1:39 PM, Christopher Jones christopher.jo...@oracle.com wrote: On 03/19/2012 01:31 PM, Kris Craig wrote: I added an entry to the FAQ about the merge.ff option available in newer

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Ferenc Kovacs
Specifically, I noticed the SSH Key field in user administration (is that new or was that always there?). https://wiki.php.net/vcs/gitfaq#using_ssh -- Ferenc Kovács @Tyr43l - http://tyrael.hu

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Kris Craig
On Mon, Mar 19, 2012 at 4:03 PM, Ferenc Kovacs tyr...@gmail.com wrote: Specifically, I noticed the SSH Key field in user administration (is that new or was that always there?). https://wiki.php.net/vcs/gitfaq#using_ssh -- Ferenc Kovács @Tyr43l - http://tyrael.hu Lol yep that's where

Re: [PHP-DEV] php-src is now on git

2012-03-19 Thread Christopher Jones
On 03/19/2012 03:26 PM, Kris Craig wrote: On Mon, Mar 19, 2012 at 3:07 PM, Christopher Jones christopher.jo...@oracle.com wrote: On 03/19/2012 01:31 PM, Kris Craig wrote: Here's what I wound-up doing: The merge entries on the workflow page now contain --no-ff and I added an entry to the