Re: compile php old extensions for new zend api php 5.4.9

From: Date: Tue, 11 Dec 2012 02:20:19 +0000
Subject: Re: compile php old extensions for new zend api php 5.4.9
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-10028@lists.php.net to get a copy of this message
Hi, On Tue, 2012-12-11 at 01:47 +0100, Martinello wrote: [..] > In memtrack.c, I get: > warning: assignment discards 'const' qualifier from pointer target type [...] > then, In function 'memtrack_execute_internal' in memtrack.c: > warning: initialization discards 'const' qualifier from pointer target > type [enabled by default] > at the following lines: Those can be ignored for now. > > then the more serious: > memtrack.c, line > 112:63: error: 'znode_op' has no member > named 'op_type' > line 113:12: error: 'znode_op' has no member > named 'u' > In function 'memtrack_execute': > > This on line 113, I found that I can solve it, substituting the line 113 > with > switch (exec_data->opline->extended_value) { Right. Also look at the implementation of debug_print_backtrace in Zend/zend_builtin_functions.c which, to some degree, does the same as this function. (find a function name for an op_array) > But I got lost for the rest and I don't manage to solve the op_type. > > And finally, I get also: > > /usr/local/include/php/Zend/zend_execute.h:380:22: note: expected 'const > char ** > ' but argument is of type 'char **' If I see it correctly this is caused by class_name = get_active_class_name(&space TSRMLS_CC); in memtrack.c:77. Fix should be (untested) to change memtrack.c:71 from char *space; to const char *space; > Your help is highly appreciated to get it out. Please also open a bug ticket and attach the patch as far as you get! Thanks, johannes

« previous php.pecl.dev (#10028) next »