Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99264 invoked by uid 1010); 10 Jun 2006 21:57:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99249 invoked from network); 10 Jun 2006 21:57:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2006 21:57:12 -0000 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.168 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.168:31973] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id C2/3F-30619-7304B844 for ; Sat, 10 Jun 2006 17:57:11 -0400 Received: by ug-out-1314.google.com with SMTP id o2so1781620uge for ; Sat, 10 Jun 2006 14:57:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qf3hrbAiX5zcHaiK+NVHGLugmaZb9ZRjFT80M14KUGGrhTG7vvjigJU5kCZ46tCszHtxgQ1j5XMYKMuEznsEGf++o225ESqwUMlshrNVVoCKRi0MgUc0e+JSxCpN7CdL9tdpSeJFW0f3Pq80JCP5+VjQX5+rFRYSuF1XIQ2afo4= Received: by 10.66.252.4 with SMTP id z4mr3733118ugh; Sat, 10 Jun 2006 14:57:08 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Sat, 10 Jun 2006 14:57:08 -0700 (PDT) Message-ID: Date: Sat, 10 Jun 2006 23:57:08 +0200 To: "Michael B Allen" Cc: internals@lists.php.net In-Reply-To: <20060610174709.78d3867b.mba2000@ioplex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060610174709.78d3867b.mba2000@ioplex.com> Subject: Re: [PHP-DEV] Can you spot the bug? From: pierre.php@gmail.com (Pierre) On 6/10/06, Michael B Allen wrote: > 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) { zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &uservar (it takes a ptr ptr) --Pierre