Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13876 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4756 invoked by uid 1010); 16 Nov 2004 21:32:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4566 invoked from network); 16 Nov 2004 21:32:33 -0000 Received: from unknown (HELO jan.prima.de) (83.97.50.139) by pb1.pair.com with SMTP; 16 Nov 2004 21:32:33 -0000 Received: from BAUMBART (p508EB302.dip.t-dialin.net [::ffff:80.142.179.2]) (IDENT: HydraIRC, AUTH: LOGIN tobi) by jan.prima.de with esmtp; Tue, 16 Nov 2004 21:30:18 +0000 Date: Tue, 16 Nov 2004 22:32:55 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1752161643.20041116223255@marcus-boerger.de> To: Evan Nemerson CC: internals@lists.php.net In-Reply-To: <200411161154.45169.evan@coeus-group.com> References: <200411161154.45169.evan@coeus-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Overloaded class registration From: helly@php.net (Marcus Boerger) Hello Evan, your implementation is wrong, you need to specify the arguments to __get/__set. best regards marcus Tuesday, November 16, 2004, 9:01:25 PM, you wrote: > Hi everyone, > I noticed recently that both of my extensions (Panda and FANN, both in PECL) > emit error messages when their __get() and __set() methods are registered. > The problem seems to be that fptr.common->num_args is always 0 in > zend_check_magic_method_implementation(), regardless of what I set them to > prior to registration. > The functions still work perfectly, and valgrind doesn't complain. There's > just an incredibly annoying error message every time. It's entirely possible > (if not probable) that it's my code that's wrong, not ZE2, but I can't for > the life of me figure it out. > The pertinant portion of the code is based on the SOAP extension. The source > code for the fann extension is at > http://cvs.sourceforge.net/viewcvs.py/*checkout*/fann/fannphp/fann.c?rev=1.13 > I tried pecl-dev last week, and the only suggestion I got was using the > read_property and write_property callbacks instead of the __get() and > __post() methods, but I don't really think that's an option. The thread is at > http://marc.theaimsgroup.com/?l=pecl-dev&m=110012046408453&w=2 > Thanks. > -- > Evan Nemerson > evan@coeus-group.com > http://coeusgroup.com/en -- Best regards, Marcus mailto:helly@php.net