Re: [PHP-DEV] type hinting

2008-01-07 Thread Stefan Esser
The main flaw in type conversion hinting is that it's nearly pointless. Why convert the type at function call? PHP will automatically juggle the type depending on the variable's destination, really no point in converting it one more time when calling the function Well that is not entirely

[PHP-DEV] PHP 4 Bug Summary Report

2008-01-07 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (624 total including feature requests) ===[*Compile Issues]== 43389 Open configure ignoring --without-cdb flag

[PHP-DEV] PHP 6 Bug Summary Report

2008-01-07 Thread internals
PHP 6 Bug Database summary - http://bugs.php.net Num Status Summary (66 total including feature requests) ===[*General Issues]== 26771 Suspended register_tick_funtions crash under threaded webservers

[PHP-DEV] type hinting (fwd)

2008-01-07 Thread Wietse Venema
There's a lot of confusion on php-internals about a proposal for type hinting, so someone did a writeup on related terminology, including something called popcorn WTF. Wietse - Forwarded message from Martin Alterisio - Message-ID: [EMAIL PROTECTED] Date: Sun, 6 Jan 2008 23:58:54

Re: [PHP-DEV] type hinting (fwd)

2008-01-07 Thread Wietse Venema
Sorry for the noise. That was meant to be forwarded off-list. Wietse -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] type hinting

2008-01-07 Thread Stefan Priebsch
Sam Barrow schrieb: Well these errors can be handled like any other, as long as they don't issue a fatal. That's exactly my point. You need to handle them. So in pidgin PHP that could look something like function foo(int $foo) {} try { foo($bar); } catch (WhateverException $e) { since

[PHP-DEV] php ldap wit exop patch and missing ZSTR

2008-01-07 Thread Faraz Khan
Dear all, I'm trying to apply the php ldap EXOP patch from : http://www.sys-net.it/~ando/Download/#PHP The patch defines a zstr in ldap.c at line 1731 as obvious below. ZSTR no longer appears to be defined anywhere in php or zend.h - can somebody help me with this? Should i just define it

[PHP-DEV] Re: php ldap wit exop patch and missing ZSTR

2008-01-07 Thread Johannes Schlüter
Hi Faraz, On Mon, 2008-01-07 at 20:53 +0500, Faraz Khan wrote: Dear all, I'm trying to apply the php ldap EXOP patch from : http://www.sys-net.it/~ando/Download/#PHP The patch defines a zstr in ldap.c at line 1731 as obvious below. ZSTR no longer appears to be defined anywhere in php

Re: [PHP-DEV] type hinting

2008-01-07 Thread Sam Barrow
On Mon, 2008-01-07 at 15:19 +0100, Stefan Priebsch wrote: Sam Barrow schrieb: Well these errors can be handled like any other, as long as they don't issue a fatal. That's exactly my point. You need to handle them. So in pidgin PHP that could look something like function foo(int $foo)

Re: [PHP-DEV] U

2008-01-07 Thread Daniel Brown
On Jan 6, 2008 5:06 AM, Stefan Esser [EMAIL PROTECTED] wrote: Hello Daniel, It may be off-topic for the initial post, but I disagree wholeheartedly with the above statement, Stefan. There are innumerable reasons where $_REQUEST would be much more economic than writing out all

[PHP-DEV] Re: type hinting

2008-01-07 Thread Elizabeth M Smith
Afternoon, Wow, go away for a weekend and look what happens... Personally I think the issue is that true scalar type hinting doesn't make much sense with a dynamically typed language. Deciding if/when/how to juggle a scalar typehint is going to make at least one person angry and some new

Re: [PHP-DEV] type hinting

2008-01-07 Thread Stefan Priebsch
Sam Barrow schrieb: Keep in mind that your do_whatever would actually be a trigger error with an error message including the name of the function and parameter number. I did not make the point of my code clear enough. do_whatever is not the code that triggers the error, but the code that

Re: [PHP-DEV] Re: type hinting

2008-01-07 Thread Sam Barrow
On Mon, 2008-01-07 at 13:16 -0500, Elizabeth M Smith wrote: Afternoon, Wow, go away for a weekend and look what happens... Personally I think the issue is that true scalar type hinting doesn't make much sense with a dynamically typed language. Deciding if/when/how to juggle a scalar

Re: [PHP-DEV] type hinting

2008-01-07 Thread Robert Cummings
On Mon, 2008-01-07 at 19:21 +0100, Stefan Priebsch wrote: Sam Barrow schrieb: Keep in mind that your do_whatever would actually be a trigger error with an error message including the name of the function and parameter number. I did not make the point of my code clear enough. do_whatever

Re: [PHP-DEV] type hinting

2008-01-07 Thread Sam Barrow
On Mon, 2008-01-07 at 19:21 +0100, Stefan Priebsch wrote: Sam Barrow schrieb: Keep in mind that your do_whatever would actually be a trigger error with an error message including the name of the function and parameter number. I did not make the point of my code clear enough. do_whatever

Re: [PHP-DEV] type hinting

2008-01-07 Thread Sam Barrow
On Mon, 2008-01-07 at 13:33 -0500, Robert Cummings wrote: On Mon, 2008-01-07 at 19:21 +0100, Stefan Priebsch wrote: Sam Barrow schrieb: Keep in mind that your do_whatever would actually be a trigger error with an error message including the name of the function and parameter number.

Re: [PHP-DEV] type hinting

2008-01-07 Thread David Coallier
On Jan 7, 2008 1:34 PM, Sam Barrow [EMAIL PROTECTED] wrote: On Mon, 2008-01-07 at 13:33 -0500, Robert Cummings wrote: On Mon, 2008-01-07 at 19:21 +0100, Stefan Priebsch wrote: Sam Barrow schrieb: Keep in mind that your do_whatever would actually be a trigger error with an error

Re: [PHP-DEV] type hinting

2008-01-07 Thread Stefan Priebsch
Robert Cummings schrieb: The onus should be on consumers of my API to use it properly, not on me to jump through hoops to make sure they gave me the correct data at every step of the way. I stopped holding hands in grade 3 or so. Still you force any defensive coder to repeat explicit type

Re: [PHP-DEV] type hinting

2008-01-07 Thread Robert Cummings
On Mon, 2008-01-07 at 19:45 +0100, Stefan Priebsch wrote: Robert Cummings schrieb: The onus should be on consumers of my API to use it properly, not on me to jump through hoops to make sure they gave me the correct data at every step of the way. I stopped holding hands in grade 3 or so.

Re: [PHP-DEV] Array objects array functions

2008-01-07 Thread Stanislav Malyshev
More specifically I was thinking of starting with adding an SPL interface called ArraySearchable, and modifying php_search_array in ext/standard/array.c to accept an object that implements that interface, in which case the appropriate interface method is called. What this interface would do?

[PHP-DEV] mysql.connect_timeout default

2008-01-07 Thread Brian Moon
I would like to propose we set this default value to something more appropriate for a web app. It is currently 60 seconds. That is a really long time for a web page to wait to find a mysql server, IMO. And in the spirit of PHP being web first, I think it should be shorter. The place where