Re: [PHP-DEV] Namespace issues

2008-10-20 Thread Ólafur Waage
or something in that fashion ? Ólafur Waage 2008/10/20 Steph Fox <[EMAIL PROTECTED]>: >> The "german keyboard" issue isn't really one. {}[] are in the same "class" >> of >> characters (alt-Gr + number-row). So, as a programmer, you either have to >

Re: [PHP-DEV] alpha2 scheduled

2008-10-27 Thread Ólafur Waage
I found that he had one valid question that i would like to see answered. > is the below allowed ? > > $bar = new Module \ Foo \ Bar(); > > I find it easier to read than with out the space. Since it looks pretty good with the spaces there. 2008/10/27 Johannes Schlüter <[EMAIL PROTECTED]>: > On T

Re: [PHP-DEV] alpha2 scheduled

2008-10-27 Thread Ólafur Waage
8-10-27 at 17:53 +0100, Hannes Magnusson wrote: >> On Mon, Oct 27, 2008 at 16:50, Ólafur Waage <[EMAIL PROTECTED]> wrote: >> > I found that he had one valid question that i would like to see answered. >> > >> >> is the below allowed ? >> >> >>

Re: [PHP-DEV] Ternary operator optimization tip

2008-12-14 Thread Ólafur Waage
Time: $arr = range(0, 100); // 0.6367609500885 $foo == true ? $foo = $arr : NULL; // 3.0994415283203E-06 if (true) $foo = $arr; else $foo = NULL; // 2.8610229492188E-06 PHP 5.1.6 Olafur Waage On Sun, Dec 14, 2008 at 9:30 PM, David Grudl wrote: > > Původní zpráva > Od: Ilia

[PHP-DEV] Is Empty functionality to the Directory Functions

2008-12-17 Thread Ólafur Waage
the current list of Directory Functions. $dir = dir("/foo/bar"); var_dump($dir->empty()); // bool(true) Ólafur Waage olaf...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Is Empty functionality to the Directory Functions

2008-12-17 Thread Ólafur Waage
ation team. Ólafur Waage olaf...@gmail.com On Wed, Dec 17, 2008 at 10:48 PM, Cristian Rodríguez wrote: > Ólafur Waage escribió: > >> $dir = dir("/foo/bar"); >> var_dump($dir->empty()); // bool(true) > > Use SplDirectoryIterator instead. > > >

Re: [PHP-DEV] PHP: 'Microsoft Build Tools'?

2009-02-07 Thread Ólafur Waage
You'll need Visual studio to build PHP from source, but there are prebuilt binaries available here: http://windows.php.net/ On Sun, Feb 8, 2009 at 12:08 AM, Marcus Young wrote: > Hi Internals, > do you have some time to help me out? > > *Quoit the PHP readme* > " > The Win32 Build System. > $Id:

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

2009-05-12 Thread Ólafur Waage
"bat") That isset (or some other language construct) would return the variable if it were set and false if it was not. Thanks for your time, i know this has probably been talked to death in one form or other. Ólafur Waage olaf...@gmail.com

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

2009-05-12 Thread Ólafur Waage
gt; if( @$_GET['foo'] === 'bar') > or > if( @$_GET['foo'] === 'bar' or @$_GET['baz'] === 'bat' ) > > > Olivier > > Ólafur Waage a écrit : > >> While researching for this suggestion I found this rfc proposal reg

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

2009-05-12 Thread Ólafur Waage
On Tue, May 12, 2009 at 5:39 PM, Robert Cummings wrote: > On Tue, 2009-05-12 at 18:23 +0100, Lewis Wright wrote: > > 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 >

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

2009-05-12 Thread Ólafur Waage
great solution. > > Brian. > > http://brian.moonspot.net/ Can this be turned into a userland function? Olafur > > > On 5/12/09 11:35 AM, Ólafur Waage wrote: > >> While researching for this suggestion I found this rfc proposal regarding >> ifsetor() ( http

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

2009-05-13 Thread Ólafur Waage
2009/5/12 Ionut Gabriel Stan > 2009/5/13 Ólafur Waage : > > 2009/5/12 Brian Moon > > > >> $foo = filter_input(INPUT_GET, "foo", FILTER_UNSAFE_RAW); > >> > >> That would have a value if set or null if not set. It also allows you > to &g

Re: [PHP-DEV] APM

2009-05-25 Thread Ólafur Waage
> Wheels were made to be reinvented! Or else we'd all be using stone wheels.

Re: [PHP-DEV] Re: PHP 5.3.0 Released!

2009-06-30 Thread Ólafur Waage
Congratulations :) On Tue, Jun 30, 2009 at 1:25 PM, Rodrigo Saboya < rodrigo.sab...@bolsademulher.com> wrote: > Lukas Kahwe Smith wrote: > >> Hello! >> >> The PHP Development Team would like to announce the immediate release of >> PHP 5.3.0. This release is a major improvement in the 5.X series,

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

2009-07-02 Thread Ólafur Waage
On Thu, Jul 2, 2009 at 9:09 PM, Ryan Panning wrote: > Ford, Mike wrote: > >>function func(int $i) >> >> for strict type checking, and >> >>function func((int)$i) >> >> for coercion aka casting (although now I've seen it written down I'm not >> so sure! ;). >> > > Just want to throw my 2 c

Re: [PHP-DEV] Real world database & statistics for phpBB3

2009-07-20 Thread Ólafur Waage
On Mon, Jul 20, 2009 at 11:28 AM, Cristian Rodríguez wrote: > On 20/07/09 04:05, Alexander Hjalmarsson wrote: > > > If there's anyone here that might be able to help in this subject it's > very > > welcome. > > > PHPBB has absolutely nothing to do with this list. > This is a part of the Better Be