Re: [PHP-DEV] Make try/catch brackets optinal

2012-07-19 Thread jevon
more freely. Something to keep in mind. Jevon On Fri, Jul 20, 2012 at 12:30 AM, Lester Caine wrote: > Peter Beverloo wrote: >> >> Other bracket-less blocks allow authors to shoot themselves in the foot >> equally so, yet PHP supports these as well. The actual problem here

Re: [PHP-DEV] Generators in PHP

2012-06-11 Thread Jevon Wright
scussion to specifically implement yield, rather than simplifying the implementation of rewindable Iterators, it might be more useful to frame the discussion in that way. Jevon On Wed, Jun 6, 2012 at 5:35 AM, Nikita Popov wrote: > Hi internals! > > In the last few days I've c

Re: [PHP-DEV] Adding a more logical string slicing function to PHP

2011-03-30 Thread Jevon Wright
If substr() really was so bad, then surely we'd see userland implementations of str_slice() in every project? Jevon On Wed, Mar 30, 2011 at 7:06 PM, Dan Birken wrote: > My apologizes if I am bringing up a topic that has been discussed before, > this is my first time wading i

Re: [PHP-DEV] RE:

2008-10-27 Thread Jevon Wright
So does that mean the new NS operator is actually \\ and not \ ? No developer is going to be relying on single \'s -- too likely to become an error in maintenence, and too inconsistent (see strings discussion). Jevon On Tue, Oct 28, 2008 at 12:11 AM, Arvids Godjuks <[EMAIL PROTECTE

Re: [PHP-DEV] dropping curly braces

2005-11-17 Thread Jevon Wright
Is there anything wrong with having a convention for character access of strings? Most PHP programmers see {} as string access and [] as array access - sure, they might be functionally identical, but its the convention which is important. Jevon > ---Original Message--- >

Re: [PHP-DEV] Unicode Implementation

2005-10-13 Thread Jevon Wright
Ditto please! Jevon - Original Message - From: "Ron Korving" <[EMAIL PROTECTED]> To: Sent: Thursday, October 13, 2005 8:27 PM Subject: [php] Re: [PHP-DEV] Unicode Implementation > Well, if you want my 2 cents as well, the 2 cents a PHP user is very willing >

Re: [PHP-DEV] Re: [sqlite] PHP5 && SQLite3

2004-10-21 Thread Jevon Wright
Probably covered by your "engine" point: please get __toString() to work properly with string concatenation and casting :) Thanks, Jevon - Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: "Greg Beaver" <[EMAIL PROTECTED]> Cc: &q

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Jevon Wright
How about anyempty($var1, $var2, $var3, ...) ? Jevon - Original Message - From: "Ron Korving" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 21, 2004 12:21 AM Subject: Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

Re: [PHP-DEV] Nesting level too deep - recursive dependency?

2004-10-19 Thread Jevon Wright
That's a really elegant solution... I'm up for trying that out. Remember to do != too :) Jevon - Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: "Greg Beaver" <[EMAIL PROTECTED]>; "Jevon Wright" <[EMAIL PROTECTED]>

Re: [PHP-DEV] Nesting level too deep - recursive dependency?

2004-10-18 Thread Jevon Wright
they have the same attributes and values, and are instances of the same class." Thus explaining the recursive loop... Maybe write a big flashing note in the documentation instead about this trap? Jevon - Original Message - From: "Benj Carson" <[EMAIL PROTECTED]> To

Re: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Jevon Wright
Alternatively, you could try to support polymorphism in classes :o) Then you wouldn't need null references... class X { function a(); function a(MyObj $b); } Jevon Wright - Original Message - From: "Robert Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

Re: [PHP-DEV] is_a() vs. instanceof

2004-08-12 Thread Jevon Wright
What about: if (get_class($obj) == "unloadedclass") { // blah } Jevon - Original Message - From: "Al Baker" <[EMAIL PROTECTED]> To: "Hans Lellelid" <[EMAIL PROTECTED]> Cc: "Dan Ostrowski" <[EMAIL PROTECTED]>; <[EMAIL PR

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jevon Wright
HP would have support for dates after 32 bit (2037)... when do you think Pecl's Date would get into PHP? Jevon - Original Message - From: "Jason Garber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 03, 2004 2:36 PM Subject: [PHP-DEV] Date

Re: [PHP-DEV] GOTO operator

2004-07-30 Thread Jevon Wright
note, if a GOTO was added, the ability to go " goto foo$bar " (dynamic goto) could add another gold star onto PHP's coolness. Jevon - Original Message - From: "Frank M. Kromann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 30, 2004

Re: [PHP-DEV] Re: keyword arguments?

2004-06-24 Thread Jevon Wright
ur function kept on changing? Before long you'll have 100 arguments with only 10 of them used at any one point... Just some thoughts... Jevon - Original Message - From: "Richard Mann" <[EMAIL PROTECTED]> To: "Daniel Crookston" <[EMAIL PROTECTED]>; &quo

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Jevon Wright
> ?> 'c:\\windows\\system32' becomes 'c:\windows\system32' in memory (the slashes are stripped). stripslashes() will make it 'c:windowssystem32'. Thus the above tests will fail. This isn't a bug? (Doesn't magic_quotes_sybase only override magic_quotes_gpc

Re: [PHP-DEV] Use of 'self' in static function in subclass

2004-06-01 Thread Jevon Wright
his what this suggestion would suggest? Thanks, Jevon - Original Message - From: "Adam Bregenzer" <[EMAIL PROTECTED]> To: "Hans Lellelid" <[EMAIL PROTECTED]> Cc: "Ferdinand Beyer" <[EMAIL PROTECTED]>; "Timm Friebe" <[EMAIL PROTECTED]

Re: [PHP-DEV] [RFC] Type hints

2004-05-11 Thread Jevon Wright
If so, maybe allow the type hint to always succeed, if it's got NULL as the default parameter? (that way foo() wouldn't act differently to foo(NULL), even though they both mean the same thing, ignoring the type hint) Jevon - Original Message - From: "Timm Friebe" &l

Re: [PHP-DEV] Read PHP script from...

2004-05-07 Thread Jevon Wright
Well, if you can get the file source out of the archive into a string, you could then eval() it. Hope this helps, Jevon - Original Message - From: "Srdjan Mijanovic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 08, 2004 5:51 AM Subject: [PHP-DEV

Re: [PHP-DEV] Implicit Arrays and E_STRICT

2004-05-07 Thread Jevon Wright
Won't you then have to recursively initialise multiple dimension arrays? $a = array(); $a[0] = array(); Otherwise, isn't this implicitly creating arrays? (I didn't quite understand the last time) Jevon - Original Message - From: "Jason Garber" <[EMAIL PROTE

Re: [PHP-DEV] Reflection API : Feature request and question

2004-05-05 Thread Jevon Wright
HP internals seem so obsessed about :D I don't know if this is truly useful - maybe if the PHP code is stored in memory anyway, and it doesn't introduce a performance penalty...? Jevon -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] nested includes fails?

2004-05-04 Thread Jevon Wright
I tried this and it didn't fail... Jevon - Original Message - From: "Tumurbaatar S." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 1:32 PM Subject: Re: [PHP-DEV] nested includes fails? > Hi, Jevon, > Mine is not so c

Re: [PHP-DEV] nested includes fails?

2004-05-04 Thread Jevon Wright
--- I can access \member.php, \member2.php and \member3.php all fine with no errors. Perhaps you've got a "common.php" in the \member directory? Because require_once("common.php") will use *that* common.php instead (and not the one in \inc\). Jevon - Original Message

Re: [PHP-DEV] nested includes fails?

2004-05-04 Thread Jevon Wright
I tested it on PHP 5 RC1, Win XP SP1, IIS 5.1 running as CGI - it didn't fail. I tried it on PHP 5 RC2, Win XP SP1, IIS 5.1 running as CGI - it didn't fail then, either. (Calling c.php) a.php b.php c.php common.php Jevon - Original Message - From: &quo

Re: [PHP-DEV] [PATCH] Repost - Adding Output Filters w/ Apache2 Handler SAPI

2004-04-29 Thread Jevon Wright
developers which are interested in a script -> xml -> xml -> xml -> xhtml pipeline, and something like add_output_filter() might be a godsend :) Yeah, I know it can be done in userland (somewhat)... Jevon - Original Message - From: "Edward Rudd" <[EMAIL PROTECTED]>

Re: [PHP-DEV] Re: Multi-Method Dispatch in PHP 5.1?

2004-04-21 Thread Jevon Wright
this style of code? Jevon - Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: "Christian Schneider" <[EMAIL PROTECTED]>; "Michael Walter" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 9:55

Re: [PHP-DEV] Exceptions and Errors

2004-04-15 Thread Jevon Wright
} You'd have to go function move($amount) throws SomeException, forcing the developer to handle Exceptions at the soonest possible point... (I'm a fan of it.) Jevon -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Exceptions and Errors

2004-04-13 Thread Jevon Wright
e application should not try to catch. Most such errors are abnormal conditions." Perhaps normal E_ERROR => Exception, and totally fatal errors => Error. You can catch Errors too, but it's specifically said that you really shouldn't try. Jevon -- PHP Internals - PHP Runti

Re: [PHP-DEV] __toString() with cast is broken in php5 RC1

2004-04-01 Thread Jevon Wright
Can you add a default __toString() for all objects (which don't extend or implement a __toString()) then? Because at least then we could use $str = $anyobj->__toString(). Otherwise I don't think __toString() has any real functionality, except for print and echo... Jevon - Ori

Re: [PHP-DEV] Studlycaps and MySQLi

2004-03-23 Thread Jevon Wright
I'm in the "change it to be consistent" boat - Original Message - From: "Andi Gutmans" <[EMAIL PROTECTED]> To: "Rasmus Lerdorf" <[EMAIL PROTECTED]>; "Georg Richter" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "George Schlossnagle" <[EMAIL PROTECTED]>; "Edin Kadribasic" <[EMAIL PROTEC