Bug #15125: pnctl_signal does not handle class's as callbacks - patch included
| From: | alan_k@php.net | Date: | Sun, 20 Jan 2002 15:57:12 +0000 |
| Subject: | Bug #15125: pnctl_signal does not handle class's as callbacks - patch included | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77594@lists.php.net to get a copy of this message | ||
From: alan_k@php.net
Operating system: Linux
PHP version: 4.0CVS-2002-01-20
PHP Bug Type: *Extensibility Functions
Bug description: pnctl_signal does not handle class's as callbacks - patch included
Have a go with this.- I'm assuming that zend_is_callable works like
php_gtk_is_callable...
regards
alan
Index: pcntl.c
===================================================================
RCS file: /repository/php4/ext/pcntl/pcntl.c,v
retrieving revision 1.18
diff -u -r1.18 pcntl.c
--- pcntl.c 4 Jan 2002 14:08:25 -0000 1.18
+++ pcntl.c 20 Jan 2002 15:51:50 -0000
@@ -483,14 +483,8 @@
RETURN_TRUE;
}
- if (Z_TYPE_PP(handle)!=IS_STRING) {
- php_error(E_WARNING, "Invalid type specified for handle
argument in %s", get_active_function_name(TSRMLS_C));
- RETURN_FALSE;
- }
-
- convert_to_string_ex(handle); /* Just in case */
if (!zend_is_callable(*handle, 0, &func_name)) {
- php_error(E_WARNING, "%s: %s is not a callable function
name error", get_active_function_name(TSRMLS_C), func_name);
+ php_error(E_WARNING, "%s: argument 2 is not a callable
function or method", get_active_function_name(TSRMLS_C));
efree(func_name);
RETURN_FALSE;
}
--
Edit bug report at: http://bugs.php.net/?id=15125&edit=1