Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants

2010-08-25 Thread Tyler Lawson
copy off the internet from people who know better. In short, I don't want to see "error_reporting(E_NONE | E_ERROR);" in anybody's PHP code. Even if it is harmless. Maybe I'm just a little too wound up about such things, though. Just my two cents. -- Tyler

Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants

2010-08-25 Thread Tyler Lawson
27;s not meant to combine with the other predefined constants. 0 is special. 0 doesn't play nicely with others. This is obviously an edge case, and a less experienced developer would hopefully learn very quickly the right way to do it, but I don't like the idea of giving people ammo to shoot a

Re: RE: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Tyler Lawson
Why not use both names? For all of those distributing frameworks and such, use "package". And for everybody else, who just wants to shorten their class names, use "namespace". It's probably easier said than done, but why not just alias one to the other? Tyler -- PHP Internals - PHP Runtim

RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
That was just a crappy test case I put together really quickly, but I do see you are correct. I was so focused on ampersands being the issue that the simple and correct solution eluded me. Sorry to bother you. Tyler Lawson -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL

RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
reat"]=> string(0) "" } With this patch it would be: array(4) { ["data"]=> string(42) "This is my data \u0026 it is really great" } Tyler -Original Message- From: Antony Dovgal [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 3:59 PM To: T

[PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
Hello, I hope this is the right place for this, as I'd like to post a patch for your consideration to the way the JSON handles ampersands. I have had problems sending JSON data back and forth over POST requests, where an ampersand separates variables. This patch will convert "&" into "\u0026", w