Re: [PHP-DEV] Type hinting

2010-05-27 Thread Evert | Filemobile
On 2010-05-27, at 8:14 PM, Zeev Suraski wrote: At 13:59 27/05/2010, Ilia Alshanetsky wrote: Zeev, Auto-conversion does not validate input to the function/method, it merely obfuscates the wrong input by converting it to desired type resulting in a potentially un-expected value. I must

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Evert | Filemobile
Is a 'scalar' typehint still being considered? It doesn't seem to suffer from the conversion vs. typechecking argument. Currently, it's available in trunk: http://svn.php.net/viewvc?view=revisionrevision=299707 Ah that's great news, thanks! Evert -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: Regarding serialize

2009-08-18 Thread Evert | Filemobile
Protected properties are serialized as: 0x00 + * + 0x00 + property name The null characters don't show up in your console, but pipe the output through for example 'hexdump -C' and you should see them.. Evert On 19-Aug-09, at 1:37 AM, Chris Stockton wrote: Apologies for the double post,

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

2009-06-30 Thread Evert | Filemobile
On 30-Jun-09, at 10:19 AM, Ilia Alshanetsky wrote: Chris, I've been using APC with PHP 5.3 on my dev box for sometime now and it works no worse then it did with 5.2. No worse! You're not really selling it :) Congrats all anyway, this is a release I'm quite excited about. Yay for

Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2009-06-30 Thread Evert | Filemobile
On 4-Sep-08, at 12:06 AM, Andi Gutmans wrote: Btw, contrary to what many believe, 32bit PHP tends to perform better than 64bit PHP. So unless there's a really good reason why you want 64bit I wouldn't waste too much time on that. I have heard this before, but CPU hasn't really been our

Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6?

2009-04-13 Thread Evert | Filemobile
On 13-Apr-09, at 4:06 PM, Stanislav Malyshev wrote: Hi! Thats because with short_open_tags on, you need to use: ?php echo('?xml ... ?'); ? It's a pretty small use case (that's a problem only if you have xml documents which has to have php code which has to be inlined) and as you see,

Re: [PHP-DEV] Destructor Order

2008-10-22 Thread Evert | Filemobile
I believe the end of your script part is the problem. Imagine you have some object (say, ActiveRecord style) that writes itself to the database when it's destroyed if the data has been modified. Now cache that object in a static variable somewhere for performance. You're also using PDO,

Re: [PHP-DEV] Re: [RFC] Help debugging overloaded objects

2007-01-16 Thread Evert | FileMobile
Ignore this message if it doesn't make sense.. wouldn't this essentially be the same as __toArray() ? Evert Marcus Boerger wrote: Hello Michael, ok current name and other options in one list: 1) get_debug_info() 2) get_debug_hash() 3) get_dump_vars() 4) get_dump_hash() does this list

Re: [PHP-DEV] Feature request

2006-11-09 Thread Evert | FileMobile
Edin Kadribasic wrote: Dmitry Shirokov wrote: Hey guys. What are you thinking about adding this feature: ?php function foo() { return array(1,2,3,4,5,6); } echo foo()[4]; // it that // or may be (foo())[4] ? // instead of $var = foo(); echo $var[4]; +1 I would very

[PHP-DEV] PHP bug search

2006-09-28 Thread Evert | FileMobile
The bug search doesn't seem to work correctly.. I was trying to find if there were bugs related to the ftp extension, but then i found out searching for 'ftp' wouldn't return anything.. So i wanted to be sure and try out 'PDO' and 'COM' as search queries, but nothing seemed to return