diff options
author | Andi Gutmans <andi@php.net> | 1999-08-02 18:40:10 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 1999-08-02 18:40:10 +0000 |
commit | 07e0885519ccabbd9cebfce7223be657171a6629 (patch) | |
tree | d5dabade5aa331f00d6809f1f75e9c59af6088e2 /Zend/zend_compile.c | |
parent | 42c586b97c667ce83f674b6421901d25270f80e9 (diff) | |
download | php-git-07e0885519ccabbd9cebfce7223be657171a6629.tar.gz |
Make set_compiled_filename() return a pointer to the allocated file name
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9cf6551e52..4e335e597a 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -88,13 +88,14 @@ void shutdown_compiler(CLS_D) } -ZEND_API void zend_set_compiled_filename(char *new_compiled_filename) +ZEND_API char *zend_set_compiled_filename(char *new_compiled_filename) { char *p = estrdup(new_compiled_filename); CLS_FETCH(); zend_llist_add_element(&CG(filenames_list), &p); CG(compiled_filename) = p; + return p; } |