Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1451 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65418 invoked from network); 12 May 2003 18:29:39 -0000 Received: from unknown (HELO web12806.mail.yahoo.com) (216.136.174.41) by pb1.pair.com with SMTP; 12 May 2003 18:29:39 -0000 Message-ID: <20030512182902.34209.qmail@web12806.mail.yahoo.com> Received: from [128.122.155.151] by web12806.mail.yahoo.com via HTTP; Mon, 12 May 2003 11:29:02 PDT X-RocketYMMF: zaunere Date: Mon, 12 May 2003 11:29:02 -0700 (PDT) Reply-To: hans@nyphp.org To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Accepting time_t as an argument From: hans@nyphp.org (Hans Zaunere) I have a function that will be implemented in an extension: ZEND_FUNCTION(msr_set_time); which started life as a real C function: void msr_set_time( const time_t ts ); I'm using Andrei's way, zend_parse_parameters(), to handle arguments. So, long l; zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &l); seems to make sense. But, what if my code ends up on a platform where time_t is an int? Essentially, the question is how to use compiler specific typedefs with zend_parse_parameters() Thank you, Hans