Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34599 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71766 invoked by uid 1010); 8 Jan 2008 08:03:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71751 invoked from network); 8 Jan 2008 08:03:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2008 08:03:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=faraz.khan@emergen.biz; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=faraz.khan@emergen.biz; sender-id=unknown Received-SPF: error (pb1.pair.com: domain emergen.biz from 216.249.102.226 cause and error) X-PHP-List-Original-Sender: faraz.khan@emergen.biz X-Host-Fingerprint: 216.249.102.226 ns1.wswhost.net Received: from [216.249.102.226] ([216.249.102.226:58406] helo=maggie.wswhost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/C2-38195-96E23874 for ; Tue, 08 Jan 2008 03:03:55 -0500 Received: by maggie.wswhost.net (Postfix, from userid 33) id 42439275A4; Tue, 8 Jan 2008 13:03:51 +0500 (PKT) Received: from 192.168.1.98 (192.168.1.98 [192.168.1.98]) by maggie.wswhost.net (Horde Framework) with HTTP; Tue, 08 Jan 2008 13:03:51 +0500 Message-ID: <20080108130351.17213tqoek4ucti8@maggie.wswhost.net> Date: Tue, 08 Jan 2008 13:03:51 +0500 To: Johannes =?iso-8859-1?b?U2NobPx0ZXI=?= Cc: internals@lists.php.net References: <20080107205357.19762xnvd5whnbi8@maggie.wswhost.net> <1199726781.2843.38.camel@johannes.nop> In-Reply-To: <1199726781.2843.38.camel@johannes.nop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) Subject: Re: php ldap wit exop patch and missing ZSTR From: faraz.khan@emergen.biz (Faraz Khan) Many thanks for the quick response guys. Johannes doing void *u works, =20 however UChar *u does not. anyways its compiled and working. Btw- for anybody working with real ldap applications and php, paging =20 is almost necessary. Any hopes of incorporating this with php6? Quoting Johannes Schl=FCter : > Hi Faraz, > > On Mon, 2008-01-07 at 20:53 +0500, Faraz Khan wrote: >> Dear all, >> I'm trying to apply the php ldap EXOP patch from : >> >> >> >> The patch defines a zstr in ldap.c at line 1731 as obvious below. ZSTR >> no longer appears to be defined anywhere in php or zend.h - can >> somebody help me with this? Should i just define it manually? > > I don't know that patch but a little help: zstr is a PHP 6 type for > handling unicode and binary strings. So that patch is either missing > some compatibility code or is only for PHP 6. If you want to adopt it > either define a zstr using something like > > typedef union _zstr { > =09char *s; > =09/* void *u; -- If you get an error due a missing u component > of that union either try using a void for it > or change it to take .s as char* .... */ > =09void *v; > } zstr; > > or try to change the "zstr foo"s there to "char *foo" and drop > the .s/.u/.v where that var is being used. > > The original declaration of that type can be found here: > http://lxr.php.net/source/ZendEngine2/zend.h#235 > > Both ways aren't really good, for more I'd have to check the patch, > maybe it's best to ask the author of the patch. > > johannes > > > --=20 Faraz R Khan Chief Architect Emergen Consulting Pvt Ltd www.emergen.biz