On 19.05.2007 20:10, Sebastian Nohn wrote:
Antony Dovgal wrote:
On 19.05.2007 14:27, Sebastian Nohn wrote:
Hi,

I currently get segfaults with 5.2.3-dev when running the the Zend
Framework
0.8.0 Unit Tests:

ok 1860 - testHandleAnonymousArgFunction(Zend_Rest_ServerTest)
ok 1861 - testHandleMultipleFunction(Zend_Rest_ServerTest)
ok 1862 - testHandleMethodNoArgs(Zend_Rest_ServerTest)
ok 1863 - testHandleMethodOfClassWithConstructor(Zend_Rest_ServerTest)
ok 1864 - testHandleAnonymousArgMethod(Zend_Rest_ServerTest)
ok 1865 - testHandleNamedArgMethod(Zend_Rest_ServerTest)
Segmentation fault

Any chance to get GDB backtrace?

Aha.. I see..
Could you please try the patch attached?

Thanks in advance.

--
Wbr, Antony Dovgal
Index: Zend/zend_execute_API.c
===================================================================
RCS file: /repository/ZendEngine2/zend_execute_API.c,v
retrieving revision 1.331.2.20.2.20
diff -u -p -d -r1.331.2.20.2.20 zend_execute_API.c
--- Zend/zend_execute_API.c	18 May 2007 11:52:08 -0000	1.331.2.20.2.20
+++ Zend/zend_execute_API.c	19 May 2007 19:20:48 -0000
@@ -843,7 +843,7 @@ int zend_call_function(zend_fcall_info *
 		calling_scope = fci_cache->calling_scope;
 		fci->object_pp = fci_cache->object_pp;
 		EX(object) = fci->object_pp ? *fci->object_pp : NULL;
-		if (fci->object_pp && Z_TYPE_PP(fci->object_pp) == IS_OBJECT
+		if (fci->object_pp && *fci->object_pp && Z_TYPE_PP(fci->object_pp) == IS_OBJECT
 			&& (!EG(objects_store).object_buckets || !EG(objects_store).object_buckets[Z_OBJ_HANDLE_PP(fci->object_pp)].valid)) {
 			return FAILURE;
 		}

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to