Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34585 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62983 invoked by uid 1010); 7 Jan 2008 17:26:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62967 invoked from network); 7 Jan 2008 17:26:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2008 17:26:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:37144] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/83-15135-4C062874 for ; Mon, 07 Jan 2008 12:26:30 -0500 Received: (qmail 29412 invoked by uid 507); 7 Jan 2008 17:26:24 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.77.238) by mail4.netbeat.de with ESMTPA; 7 Jan 2008 17:26:24 -0000 To: Faraz Khan Cc: internals@lists.php.net In-Reply-To: <20080107205357.19762xnvd5whnbi8@maggie.wswhost.net> References: <20080107205357.19762xnvd5whnbi8@maggie.wswhost.net> Content-Type: text/plain Date: Mon, 07 Jan 2008 18:26:21 +0100 Message-ID: <1199726781.2843.38.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-2.fc8) Content-Transfer-Encoding: 7bit Subject: Re: php ldap wit exop patch and missing ZSTR From: johannes@php.net (Johannes =?ISO-8859-1?Q?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 { char *s; /* 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* .... */ void *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