To create new variables in the global scope, use the same method but refer to another symbol table:
Note: The active_symbol_table variable is a pointer, but symbol_table is not. This is why you have to use EG(active_symbol_table) and EG(symbol_table) as parameters to ZEND_SET_SYMBOL - it requires a pointer.