Re: a simple question about PHP extension: using user function in my own extension
| From: | Pierre Joye | Date: | Tue, 11 Dec 2012 14:29:11 +0000 |
| Subject: | Re: a simple question about PHP extension: using user function in my own extension | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64256@lists.php.net to get a copy of this message | ||
hi,
On Tue, Dec 11, 2012 at 3:25 PM, Amir <admin@ecdcconference.org> 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.