Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13875 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46130 invoked by uid 1010); 16 Nov 2004 20:01:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46090 invoked from network); 16 Nov 2004 20:01:41 -0000 Received: from unknown (HELO server786.dnslive.net) (66.78.26.27) by pb1.pair.com with SMTP; 16 Nov 2004 20:01:41 -0000 Received: from ip68-8-15-105.sd.sd.cox.net ([68.8.15.105] helo=[192.168.2.36]) by server786.dnslive.net with esmtps (SSLv3:RC4-MD5:128) (Exim 4.43) id 1CU9WF-0003Vz-UT for internals@lists.php.net; Tue, 16 Nov 2004 15:01:40 -0500 Organization: The Coeus Group To: internals@lists.php.net Date: Tue, 16 Nov 2004 12:01:25 -0800 User-Agent: KMail/1.6.1 X-DeCSS-Usage: cat title-key scrambled.vob | decss > clear.vob X-DeCSS-Line-1: #define m(i)(x[i]^s[i+84])<< X-DeCSS-Line-2: unsigned char x[5],y,s[2048];main(n){for(read(0,x,5);read(0,s,n=2048);write(1,s,n))if(s[y=s[13]%8+20]/16%4==1){int i=m(1)17^256+m(0)8,k=m(2)0,j=m(4)17^m(3)9^k*2-k%8^8,a=0,c=26;for(s[y]-=16;--c;j*=2)a=a*2^i&1,i=i/2^j&1<<24;for(j=127;++jy)c+=y=i^i/8^i>>4^i>>12,i=i>>8^y<<17,a^=a>>14,y=a^a*8^a<<6,a=a>>8^y<<9,k=s[j],k="7Wo~'G_\216"[k&7]+2^"cr3sfw6v;*k+>/n."[k>>4]*2^k*257/8,s[j]=k^(k&k*2&34)*6^c+~y;}} MIME-Version: 1.0 Content-Disposition: inline Message-ID: <200411161154.45169.evan@coeus-group.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server786.dnslive.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - coeus-group.com X-Source: X-Source-Args: X-Source-Dir: Subject: Overloaded class registration From: evan@coeus-group.com (Evan Nemerson) 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