Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24084 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96859 invoked by uid 1010); 10 Jun 2006 21:48:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96844 invoked from network); 10 Jun 2006 21:48:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2006 21:48:04 -0000 X-PHP-List-Original-Sender: mba2000@ioplex.com X-Host-Fingerprint: 66.220.1.142 li4-142.members.linode.com Linux 2.4/2.6 Received: from ([66.220.1.142:1887] helo=li4-142.members.linode.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 26/FE-30619-31E3B844 for ; Sat, 10 Jun 2006 17:48:03 -0400 Received: from quark.foo.net (c-69-142-196-170.hsd1.nj.comcast.net [69.142.196.170]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by li4-142.members.linode.com (Postfix) with ESMTP id 5339042C29 for ; Sat, 10 Jun 2006 17:47:59 -0400 (EDT) Date: Sat, 10 Jun 2006 17:47:09 -0400 To: internals@lists.php.net Message-ID: <20060610174709.78d3867b.mba2000@ioplex.com> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Can you spot the bug? From: mba2000@ioplex.com (Michael B Allen) Can anyone spot the bug in following code from the tutorial [1]? PHP_FUNCTION(hello_dump) { zval *uservar; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", uservar) == FAILURE) { RETURN_NULL(); } Mike [1] http://www.zend.com/php/internals/extension-writing2.php#Heading3 -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/