Aaargh!
When I run the following code...
--
char fname[256];
zval **retval;
zval *zfname;
strcpy(fname, "rand");
zend_printf("Step 1...\n");
MAKE_STD_ZVAL(zfname);
zend_printf("Step 2...\n");
ZVAL_STR
Hi,
I'm running gdb 5.3 under Red Hat 7.2 (up2date'd) on
php5 CGI with the "broken" RH 2.96-112.7.2 gcc.
However, when I try to print variables within gdb, gdb
tries to print variables using the wrong addresses in
VM (off by a some hundreds of bytes). I can add code
to the source code such that
My code is just as bad, but I remember that it used to work:
PHP_FUNCTION(jtemplate_set_root)
{
zval **z_root_dir;
char *root_dir = NULL;
int argc = ZEND_NUM_ARGS();
zval func;
zval *retval = NULL;
zval *args[1];
if (argc < 0 || arg
Hello Oriol,
Tuesday, June 17, 2003, 6:29:14 PM, you wrote:
O> Aaargh!
O> When I run the following code...
O> --
O> char fname[256];
O> zval **retval;
O> zval *zfname;
O> strcpy(fname, "rand");
O> zend_printf("
Hi folks,
sorry but I couldn't find the answer in the docs at php.net
and google didn't turn out anything usefull to.
I'm trying to write my own extension which would need to retrieve
and set (global) variables for the php-script its called from.
But I just can't find a way to do this in the doc
Hi,
I seems my suspiction is right as I didn't receive any reply from andrei.
So I post it to the list this time.
According to my deeper analysis. Unsetting an object will not touch any
thing related to the object execpt remove it from the active symbol. And
the same memory location(or handle)