Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:377 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9473 invoked from network); 27 Mar 2003 17:40:44 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.189) by pb1.pair.com with SMTP; 27 Mar 2003 17:40:44 -0000 Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18ybMo-0005Wo-00; Thu, 27 Mar 2003 18:40:42 +0100 Received: from [217.80.180.194] (helo=[217.80.180.194]) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18ybMo-00046a-00; Thu, 27 Mar 2003 18:40:42 +0100 To: Brian Moon Cc: engine2@lists.zend.com, internals@lists.php.net In-Reply-To: <014401c2f486$e972e010$0b02010a@doughboy> References: <1048781764.25691.593.camel@localhost> <014401c2f486$e972e010$0b02010a@doughboy> Content-Type: text/plain Organization: Message-ID: <1048786826.25691.620.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 27 Mar 2003 18:40:26 +0100 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hints revisited [IllegalArgumentException instead of E_ERROR] From: thekid@thekid.de (Timm Friebe) 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