FAQ
I am taking over an extension from one of my coworkers, and it was
written before the time of PHP 5.3. Are there any special considerations
to think about when using closures with call_user_function? This is the
current line:

if (call_user_function(EG(function_table), NULL, &callback,
&local_retval, 1, argsv TSRMLS_CC ) == FAILURE) {

However, when the extension is loaded, it crashes on this line when
callback is a closure. When callback is a string (a userspace function
name), everything works fine.

Thanks,
Alec

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedMay 19, '10 at 10:00p
activeMay 19, '10 at 11:25p
posts2
users2
websitephp.net

2 users in discussion

Spam: 1 post Alec: 1 post

People

Translate

site design / logo © 2022 Grokbase