[PHP-DEV] Questioning the future of PHP

2013-02-03 Thread Matt Wilson
Hello all. I'd like to start by saying that I am by no means an expert on the subject at hand, and my knowledge is limited to pretty much basic C/C++. I have done little more than patch and write ad hoc extensions for PHP in the past. I'm not looking to criticize so much, as I'm just interested

Re: [PHP-DEV] A new idea on PHP6.

2012-07-18 Thread Matt Wilson
I will also note that my phone cut off the part about this post not being serious. I, however, have no sense of humor. On Jul 18, 2012, at 11:17 PM, Ronald Chmara wrote: > With PHP 6, lets start with a: > Pure > Object > Oriented > PHP > > ...idea, and extend it out, so we can have a: > Stru

Re: [PHP-DEV] A new idea on PHP6.

2012-07-18 Thread Matt Wilson
I'll start off by saying that I am, personally, a great fan of OO. Pure OO languages have always tickled me just right. But I question the idea that making something pure OO makes it better. And in PHP, it wouldn't be a mere revamp of the OOP system like php5 did, it would fundamentally change

Re: [PHP-DEV] [off] PHP: a fractal of bad design

2012-05-07 Thread Matt Wilson
While it's not the prettiest of side effects in php, I don't agree it should be "fixed" On top of a massive BC break, it's not as if the results are inconsistent. Learning php means learning how type juggling works. At most, I'd remove the part that truncates numeric strings like "123abc" and

Re: [PHP-DEV] Scalar type hinting

2012-02-29 Thread Matt Wilson
I once pushed this hard for namespaces. Then, after years of it being shot down, they did it. And now I'm sad. It didn't occur to me until after it had been implemented how bad an idea it was for php. I think this is one of those times. Type hinting is wonderful, but i'm not sure you could rea

Re: [PHP-DEV] test, pls ignore

2011-06-05 Thread Matt Wilson
+1 On Jun 5, 2011, at 6:02 PM, Pierre Joye wrote: > test for brain dead SURBL > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Inte

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Matt Wilson
The issue I have with that is that, regardless of the syntax chosen, even if it meant a 100% inline JSON syntax, you would still (for obvious reasons) need to parse any JSON string into PHP structures. You still have to do json_load($php_or_json_string) or (god have mercy) eval($string). At that

Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Matt Wilson
Would it be possible to have a vote on the various options being proposed here? I think JSON syntax is definitely more concise and easier to type, as well as more convenient -- but I don't think it makes sense for PHP without changing how arrays work (I'm all for that, but that's a different dis

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-05-31 Thread Matt Wilson
Exactly my point. Why try to fudge json into php, instead of just improving php? On May 31, 2011, at 5:02 PM, Dan Birken wrote: > Yes it does :) > > I guess my point was it would be confusing if PHP supported JSON-like > syntax, but json_decode(X) was different from eval(X). So if PHP isn't > g

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-05-31 Thread Matt Wilson
Would seem to me a more elegant solution would to just drop the idea of json interoperability and go with something that works for PHP. ('a'=>'b', 0=>1234) perhaps? On May 31, 2011, at 4:45 PM, Ilia Alshanetsky wrote: > Rasmus, > > Don't you think having support for both ['a':1, 'b':2] and {'

Re: [PHP-DEV] Change Request: Make PDO default to not emulate prepared statements for MySQL

2011-04-30 Thread Matt Wilson
) On Apr 30, 2011, at 1:44 PM, Ferenc Kovacs wrote: > > > On Sat, Apr 30, 2011 at 8:16 PM, Matt Wilson wrote: > Really would depend on the user. Part of my company still runs on SQLServer > 2003, for instance... > > Corporate infrastructure rarely sees upgrades. Your cou

Re: [PHP-DEV] Change Request: Make PDO default to not emulate prepared statements for MySQL

2011-04-30 Thread Matt Wilson
Sorry, you're right. It's 2000 service pack 3 :) On Apr 30, 2011, at 1:44 PM, Ferenc Kovacs wrote: > > > On Sat, Apr 30, 2011 at 8:16 PM, Matt Wilson wrote: > Really would depend on the user. Part of my company still runs on SQLServer > 2003, for instance... >

Re: [PHP-DEV] Change Request: Make PDO default to not emulate prepared statements for MySQL

2011-04-30 Thread Matt Wilson
Really would depend on the user. Part of my company still runs on SQLServer 2003, for instance... Corporate infrastructure rarely sees upgrades. Your cousin with the wordpress fetish, on the other hand... On Apr 30, 2011, at 1:10 PM, Ferenc Kovacs wrote: > On Sat, Apr 30, 2011 at 7:53 PM, Rasm

Re: [PHP-DEV] [RFC] Return type-hint

2011-04-28 Thread Matt Wilson
om "empty". The implementation in php is slightly difference, since you're not actually working with, say, a null pointer. On Apr 28, 2011, at 1:05 PM, Martin Scotta wrote: > > Martin Scotta > > > On Thu, Apr 28, 2011 at 2:51 PM, Matt Wilson wrote: > Here

Re: [PHP-DEV] [RFC] Return type-hint

2011-04-28 Thread Matt Wilson
Here's my issue: We're borrowing a feature from strongly typed languages and forcing it on a loosely typed language. I'm fine with this, if we're true to the concept. In a regular language, if you type something to return an object of type Foo, you might still get back null, and appropriately n

Re: [PHP-DEV] Avoiding "Undefined index" notices

2011-04-11 Thread Matt Wilson
Something I've been doing for a long time is similar, but in my opinion a much better practice. function coalesce(&$val, $ifnull = false) { return empty($val) ? $ifnull : $val; } Add whatever restrictive logic you wish here, if empty() isn't good enough for your purposes. $_GET['might

Re: [PHP-DEV] proposed access modifier "silent" ... was: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-10 Thread Matt Wilson
@. On Apr 10, 2011, at 9:22 PM, D. Dante Lorenso wrote: > The problem with implementing "ifsetor", "filled", or "??" in userland is > that the "not set" or "undefined" warning is fired before the variable is > passed to the underlying function/method. > > Is it possible to add a modifier that

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-16 Thread Matt Wilson
bring back a proposal we had a couple of years ago, to > > totally disable post data. > > Would calling it enable_automatic_post_data_reading help with that > confusion? > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Matt Wilson 816.830.9429

Re: [PHP-DEV] backslash, really ... ?

2010-04-28 Thread Matt Wilson
So, you decided to jump in to criticize a design decision that went in after several months of discussion, without any insight into why it was done the way it was? On Apr 28, 2010, at 4:45 PM, Sylvain Rabot wrote: > Hi, > > The comment I'm about to make is behind the times, and, now, useless,

Re: [PHP-DEV] RFC: Replacing errors with Exceptions

2009-07-24 Thread Matt Wilson
I agree, however there are certain aspects of PHP's errors that leave a lot to be desired. For instance, a failed fopen or a failed socket will often result in an uncatchable warning from php. Sure, you can add a @ to the line but that's slow and doesn't tell you anything about what happene

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-07 Thread Matt Wilson
+1 On Jul 6, 2009, at 7:52 PM, Ilia Alshanetsky wrote: Last week or so there was a fairly detailed discussion on the internals list regarding type hinting based on my original patch. Since then the patch has been revised to address the major concerns that were identified (breakage of binar

Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3

2009-07-01 Thread Matt Wilson
+1000 * infinity plus one On Jul 1, 2009, at 12:23 PM, Paul Biggar wrote: Hi Ilia, This is great. On Wed, Jul 1, 2009 at 5:59 PM, Ilia Alshanetsky wrote: I've taken a few hours this morning to port my 5.2 type hinting patch to 5.3. In recognition of a need for a more 'flexible' numeric t

Re: [PHP-DEV] Question on file upload

2009-06-02 Thread Matt Wilson
I'm not sure if you're looking to change the C implementation or not, but you could always bypass the internal processing of the file. Set post_max_size to 0 and parse the HTTP_RAW_POST_DATA manually. On Jun 2, 2009, at 3:55 PM, Bharat Nagwani wrote: Hello, I want to change the way file u

Re: [PHP-DEV] need inverted __sleep?

2009-05-31 Thread Matt Wilson
ing(1) "d" } On May 31, 2009, at 8:46 PM, Nathan Rixham wrote: Matt Wilson wrote: get_class_vars + array_diff cheers but nope; as the manual says "Returns an associative array of default public properties of the class" need private and inherited private On May 31,

Re: [PHP-DEV] need inverted __sleep?

2009-05-31 Thread Matt Wilson
get_class_vars + array_diff On May 31, 2009, at 8:04 PM, Nathan Rixham wrote: Hi All, hoping somebody can help me here.. I need to implement an inverted __sleep method, by which I mean to specify what variables should not be included. use case: // TODO code return instance properties e

Re: [PHP-DEV] Vote: allow_call_time_pass_reference value in production INI

2009-02-18 Thread Matt Wilson
+1 Off (Issue warnings) On Feb 18, 2009, at 11:34 PM, Eric Stewart wrote: We seem to have a split opinion on what the production INI value for allow_call_time_pass_reference should be. As I understand it, this does not enable or disable the ability to pass references at call time. It only en

Re: [PHP-DEV] quick polls for 5.3

2008-11-12 Thread Matt Wilson
On Nov 12, 2008, at 1:14 PM, Lukas Kahwe Smith wrote: Hi, here are a few questions that need to be answered ASAP. If at all possible keep your votes as short as possible. I think all of the above topics have been discussed quite a lot on the list. So I hope voters can spare the list needl

[PHP-DEV] CVS Account Request: shadda

2006-12-27 Thread Matt Wilson
Documenting the curl_multi_* functions -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] The PHP Installer (Windows)

2005-12-25 Thread Matt Wilson
I'm curious why this exists. It doesn't seem to do anything but harm? Not a day goes by where I'm not asked why some one can't get mysql to work with php because of this thing... Just wondering why its there, is all. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit