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

From: Date: Mon, 10 Dec 2012 00:25:08 +0000
Subject: Re: a simple question about PHP extension: using user function in my own extension
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-64213@lists.php.net to get a copy of this message
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 (#64213) next »