note 41912 added to zend.variables

From: Date: Mon, 26 Apr 2004 02:14:56 +0000
Subject: note 41912 added to zend.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-68807@lists.php.net to get a copy of this message
If you want free after created, you can do this: zval *new_var; /* allocate and initialize new container */ MAKE_STD_ZVAL(new_var); /* set type and variable contents here, see the following sections */ ZVAL_STRING(new_var, "123456", 1); /* introduce this variable by the name "new_variable_name" into the symbol table */ zend_hash_update( EG(active_symbol_table), "new_var", strlen("new_var") + 1, &new_var, sizeof(zval *), NULL ); zend_hash_del( EG(active_symbol_table), "new_var", strlen("new_var") + 1); FREE_ZVAL(new_var); ---- Manual Page -- http://www.php.net/manual/en/zend.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41912 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41912&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41912&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68807) next »