[PHP-DEV] [PATCH] Delegate type hint/checks to alternative locations (Re: [PHP-DEV] back to 5.4 alpha)

2010-09-05 Thread Derick Rethans
On Wed, 11 Aug 2010, Derick Rethans wrote: > On Wed, 11 Aug 2010, Stas Malyshev wrote: > > > So I'd propose doing the following: > > > > 1. Moving parameter typing to a feature branch (by branching current trunk > > and > > then rolling back the typing part in the trunk). > > 2. Starting 5.4 al

Re: [PHP-DEV] Built-in function: between

2010-09-05 Thread Johannes Schlüter
On Sat, 2010-09-04 at 21:52 +0200, Alex Baumann wrote: > Hi! > Since I'm using this function in each project I'm working on, how about > making it a built-in function? > > function between ($text, $between, $and) { > $start = strpos($text, $between)+strlen($between); > if ($start === fa

[PHP-DEV] Built-in function: between

2010-09-05 Thread Alex Baumann
Hi! Since I'm using this function in each project I'm working on, how about making it a built-in function? function between ($text, $between, $and) { $start = strpos($text, $between)+strlen($between); if ($start === false) return ""; $end = strpos($text, $and, $start); if ($end

Re: [PHP-DEV] "or throw new" syntax

2010-09-05 Thread Etienne Kneuss
On Sep 05 14:19:16, Kalle Sommer Nielsen wrote: > Hi > > Is there any reason for we don't support expressions like: > > test() or throw new Exception('test() failed'); > > > If no, is there any argument against supporting such a syntax in trunk? Technically, it should be quite easy to have tha

[PHP-DEV] "or throw new" syntax

2010-09-05 Thread Kalle Sommer Nielsen
Hi Is there any reason for we don't support expressions like: test() or throw new Exception('test() failed'); If no, is there any argument against supporting such a syntax in trunk? -- regards, Kalle Sommer Nielsen ka...@php.net -- PHP Internals - PHP Runtime Development Mailing List To un