Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41670 invoked from network); 5 Dec 2012 21:45:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2012 21:45:24 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:40301] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/88-04278-270CFB05 for ; Wed, 05 Dec 2012 16:45:23 -0500 Received: by mail-pb0-f42.google.com with SMTP id rp2so3792292pbb.29 for ; Wed, 05 Dec 2012 13:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+oL0hpu0tzxzUIKXgbCy7yYBHxDEMhQ9OMuJHEQI/u8=; b=n+vWZZl/hkSeM2qY1A4SA9PDzxSbf19AHAmbBYL9RLINQyV+FVxeYMIG91mhIE4a/c hdA/kvW5NyTCQvPrY4EaIwJhkU0BPm/whQZgqydGmxf2h+68Z4LWqMRpCRxhqptAUTcs woS7VFSpNjPtD+akkcUtipWTvmFjNGJ8oe15B9qG3IRB4gUr+h3gaEIc2qVNw/GvKtso qtXZ1Sq8/4QbMhJSDxbjfqrX1vtvgJlrQvjbC6sfCkvLN0UnwmshsT8qPjF/Tgio192e 2eEBqgDt3oC6MrU501FMw/LC9BWXNFiDO6PskwjKUaD3FpdBmirIINLZLPmHx+IibYPH Lvew== MIME-Version: 1.0 Received: by 10.66.83.165 with SMTP id r5mr48664939pay.3.1354743918988; Wed, 05 Dec 2012 13:45:18 -0800 (PST) Received: by 10.66.86.5 with HTTP; Wed, 5 Dec 2012 13:45:18 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Dec 2012 22:45:18 +0100 Message-ID: To: Amir Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] a simple question about PHP extension: using user function in my own extension From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, Dec 5, 2012 at 12:18 PM, Amir wrote: > Hi > I am trying to build an PHP extension for my personal project. > For some reason. I want to build some part of my project with extension. > So, I can make a connection via my extension as you can see below my c++ > source code. > > Cause of poor document, I confused with zend engine source code and c++ and > relations with php. > I just have a simple question, how can I use mysql funtions work with query > and process it like: > mysql_query > mysql_fetch_assoc > and ... I would suggest to look at the mysqli driver, using mysqlnd as backend instead of calling user land functions. Mysqlnd is the common underlying layer for all mysql extensions. Cheers, -- Pierre @pierrejoye