Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_0) / zend_execute_API.c
| From: | Marcus Boerger | Date: | Tue, 03 May 2005 11:09:47 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_0) / zend_execute_API.c | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-3645@lists.php.net to get a copy of this message | ||
Hello Dmitry,
thanks for reminding me. However i have also something for you.
According to cvs you merged some IS_CALLABLE_CHECK_NO_ACCESS const
to ext/standard/basic_functions.c but didn't merge the zend engine
part of that fix. See below:
Annotations for ext/standard/basic_functions.c
***************
1.711 (dmitry 27-Apr-05): if (!zend_is_callable(*params[0],
IS_CALLABLE_CHECK_NO_ACCESS, &name)) {
1.533 (hholzgra 21-Oct-02): php_error_docref1(NULL TSRMLS_CC, name, E_WARNING,
"First argument is expected to be a valid callback");
1.337 (andrei 14-May-01): efree(name);
1.336 (sterling 14-May-01): efree(params);
1.336 (sterling 14-May-01): RETURN_NULL();
1.336 (sterling 14-May-01): }
--
1.711 (dmitry 27-Apr-05): if (!zend_is_callable(*func, IS_CALLABLE_CHECK_NO_ACCESS,
&name)) {
1.670 (helly 20-Jun-04): php_error_docref(NULL TSRMLS_CC, E_WARNING,
"First argument is expected to be a valid callback, '%s' was given", name);
1.337 (andrei 14-May-01): efree(name);
1.336 (sterling 14-May-01): RETURN_NULL();
1.336 (sterling 14-May-01): }
1.283 (andrei 07-Dec-00):
Since the above problem prevents me from compiling PHP 5.0
i cannot really test MFHing of my fixes and thus not test
the updated tests either.
regards
marcus
Tuesday, May 3, 2005, 11:21:33 AM, you wrote:
> Hi Marcus,
> Could you please fix test files those were affected by your patch.
> ZE2 A derived class with an abstract method must be abstract
> [tests/classes/abstract_derived.phpt]
> ZE2 An abstract class must be declared abstract
> [tests/classes/abstract_not_declared.phpt]
> ZE2 A method cannot be redeclared abstract
> [tests/classes/abstract_redeclare.phpt]
> ZE2 An interface must be implemented
> [tests/classes/interface_must_be_implemented.phpt]
> ZE2 interface with an unimplemented method
> [tests/classes/interfaces_002.phpt]
> Thanks. Dmitry.
>> -----Original Message-----
>> From: Marcus Boerger [mailto:helly@php.net]
>> Sent: Monday, May 02, 2005 8:03 PM
>> To: zend-engine-cvs@lists.php.net
>> Subject: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_0) /
>> zend_execute_API.c
>>
>>
>> helly Mon May 2 12:03:01 2005 EDT
>>
>> Modified files: (Branch: PHP_5_0)
>> /ZendEngine2 zend_execute_API.c
>> Log:
>> - MFH Bugfix #30126
>>
>>
>> http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=
> 1.287.2.13&r2=1.287.2.14&ty=u
> Index: ZendEngine2/zend_execute_API.c
> diff -u ZendEngine2/zend_execute_API.c:1.287.2.13
> ZendEngine2/zend_execute_API.c:1.287.2.14
> --- ZendEngine2/zend_execute_API.c:1.287.2.13 Sun Apr 24 10:49:00 2005
> +++ ZendEngine2/zend_execute_API.c Mon May 2 12:03:01 2005
> @@ -17,7 +17,7 @@
>
> +----------------------------------------------------------------------+
> */
> -/* $Id: zend_execute_API.c,v 1.287.2.13 2005/04/24 14:49:00 sniper Exp $ */
> +/* $Id: zend_execute_API.c,v 1.287.2.14 2005/05/02 16:03:01 helly Exp $
> +*/
> #include <stdio.h>
> #include <signal.h>
> @@ -1358,8 +1358,9 @@
> zend_hash_apply_with_argument(&ce->function_table,
> (apply_func_arg_t) zend_verify_abstract_class_function, &ai TSRMLS_CC);
> if (ai.cnt) {
> - zend_error(E_ERROR, "Class %s contains %d abstract
> methods and must therefore be declared abstract (" MAX_ABSTRACT_INFO_FMT
> MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT ")",
> + zend_error(E_ERROR, "Class %s contains %d abstract
> method%s and must
> +therefore be declared abstract or implement the remaining methods ("
> MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT ")",
> ce->name, ai.cnt,
> + ai.cnt > 1 ? "s" : "",
> DISPLAY_ABSTRACT_FN(0),
> DISPLAY_ABSTRACT_FN(1),
> DISPLAY_ABSTRACT_FN(2)
--
Best regards,
Marcus mailto:mail@marcus-boerger.de