Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7554 invoked from network); 11 Dec 2012 14:29:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Dec 2012 14:29:15 -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:64312] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/39-54245-A3347C05 for ; Tue, 11 Dec 2012 09:29:14 -0500 Received: by mail-pb0-f42.google.com with SMTP id rp2so2620355pbb.29 for ; Tue, 11 Dec 2012 06:29:11 -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=QDIJc0NjUuw3peEsA3nmPYM8FIcLwl+CYB8Jua6pP3w=; b=HLmEiNlpznlMoOViR778jGaYcAzTQjNpX0q37EUNirzPdYqKjv8W7G37aNHsreoQZb i40c1ZcIa+Sjbc/veJPoamMW9H+s1ZemrmBoZVXEN4LYA+wWZL0pCA9Vnm43VEeGUns/ 8yBe1g+wf1Gtqvr+rf6teXiQNoAqMh7AtWwLe7QjMxxKRhlc7aV0lRJClvhD5007WZYx 9ca9HNnoWCLFtr0kloP/+XtAP8Wm3ArhAoIrzA3W9v1uoBDKilqKDh8bndZxBWFnPu97 P9wlLxgxNIgUbc8xuiW9If4FZloeu2f+/iJazu8Apin0T/4/0TG+dUAYoukJgnSEjbqj 7xfg== MIME-Version: 1.0 Received: by 10.66.85.39 with SMTP id e7mr36867660paz.63.1355236151863; Tue, 11 Dec 2012 06:29:11 -0800 (PST) Received: by 10.66.86.5 with HTTP; Tue, 11 Dec 2012 06:29:11 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Dec 2012 15:29:11 +0100 Message-ID: To: Amir Cc: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Will Fitch , 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 Tue, Dec 11, 2012 at 3:25 PM, Amir wrote: >>It matters as calling userspace functions is in at least 90% of the cases > the wrong approach and there are better ones. The better approach depends > on the goal. > (The only times where it is a good thing to do is when calling a user > provided callback as in usort() or a method from an object extending an > internal class s in some iterators etc.) > > *please explain me more about using userspace function problem of if other > one, or example how can I use string API from zend engine, not in php.* > >>This is very old. You should update. > > *for some reson, I have to use PHP 5.2.9* > > *everything is OK in PHP 5.3 but when I compile my source code from PHP > 5.2.9 source code I got error:* > microsoft visual studio 9.0\vc\include\sys\stat.inl(44) : error C2466: > cannot allocate an array of constant size 0 > > I did not find any appropriate answer for this error! Well, 5.2 is dead and never well supported VC9. The msdn documentation will tell you how to fix this kind of error.