Re: a simple question about PHP extension: using user function in my own extension

From: Date: Tue, 11 Dec 2012 14:25:43 +0000
Subject: Re: a simple question about PHP extension: using user function in my own extension
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-64255@lists.php.net to get a copy of this message
>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! On Mon, Dec 10, 2012 at 3:55 AM, Johannes Schlüter <johannes@schlueters.de>wrote: > > > Amir <admin@ecdcconference.org> wrote: > > >it is no mater using mysql function or other function. I want to use > >both > >as function in my extension. > > 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.) > > >I used PHP 5.2.9 so i have lib mysql instead of mysqlnd. > > This is very old. You should update. > > >Is there any way to use lib mysql in c-Level API? > > libmysql is the MySQL Client Library. Refer to > http://dev.mysql.com/doc/refman/5.5/en/c.html > > johannes > >

« previous php.internals (#64255) next »