Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16679 invoked from network); 27 Mar 2003 17:45:22 -0000 Received: from unknown (HELO mail.dealnews.com) (129.41.69.137) by pb1.pair.com with SMTP; 27 Mar 2003 17:45:22 -0000 Received: (qmail 31619 invoked from network); 27 Mar 2003 17:42:05 -0000 Received: from unknown (HELO doughboy) (207.111.175.77) by 10.1.1.7 with SMTP; 27 Mar 2003 17:42:05 -0000 Message-ID: <018d01c2f488$a3bbf910$0b02010a@doughboy> To: "Timm Friebe" Cc: , References: <1048781764.25691.593.camel@localhost> <014401c2f486$e972e010$0b02010a@doughboy> <1048786826.25691.620.camel@localhost> Date: Thu, 27 Mar 2003 11:45:21 -0600 Organization: dealnews.com, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: [PHP-DEV] Type hints revisited [IllegalArgumentException instead of E_ERROR] From: brianm@dealnews.com ("Brian Moon") Ok, sorry, I have been off the ZE2 list for a while (just joined back). Where is there more info on what the type hints do in ZE2. I am curious as I wrote the RFC. Brian. dealnews ----- Original Message ----- From: "Timm Friebe" To: "Brian Moon" Cc: ; Sent: Thursday, March 27, 2003 11:40 AM Subject: Re: [PHP-DEV] Type hints revisited [IllegalArgumentException instead of E_ERROR] | On Thu, 2003-03-27 at 18:32, Brian Moon wrote: | > Has type hinting for functions been implemented in ZE2? | | Type hints apply to global functions just as they do for class methods. | | utime= $arg < 0 ? time() : $arg; | } else { | $this->utime= strtotime($arg); | } | } | | public function toString($fmt= 'r') { | return date($fmt, $this->utime); | } | } | | function print_date(Date $date, $fmt) { | echo $date->toString($fmt); | } | | print_date(new Date(), $argv[1]); | echo "\n"; | ?> | thekid@friebes:~/devel/php > ./php5/sapi/cli/php date.php "Y-m-d" | 2003-03-27 | | - Timm | | | -- | PHP Internals - PHP Runtime Development Mailing List | To unsubscribe, visit: http://www.php.net/unsub.php | | |