summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-04 13:26:57 +0000
committerZeev Suraski <zeev@php.net>1999-12-04 13:26:57 +0000
commit9baad804595a97e47baf3f75836fcc9596f2351e (patch)
treee19df22a56f05958ab5ab540c964a9f60ef95931 /Zend/zend_compile.h
parentda5464b145be141a4b9a7130d554f73e022acc85 (diff)
downloadphp-git-9baad804595a97e47baf3f75836fcc9596f2351e.tar.gz
- Break the zend->PHP dependency introduced by the .php extension for use(),
by providing an API - Enable Stig's patch for use() extensions (it wasn't refered to by the parser) - Fix a memory leak in that code
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r--Zend/zend_compile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index c3ae28421e..18748fdabb 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -177,6 +177,7 @@ typedef struct _zend_file_handle {
istream *is;
#endif
} handle;
+ zend_bool free_filename;
} zend_file_handle;
@@ -346,8 +347,8 @@ void do_extended_fcall_end(CLS_D);
/* helper functions in zend-scanner.l */
BEGIN_EXTERN_C()
ZEND_API int require_file(zend_file_handle *file_handle, zend_bool unique CLS_DC);
-ZEND_API int require_filename(char *filename, zend_bool unique CLS_DC);
-ZEND_API int use_filename(char *filename, zend_bool unique CLS_DC);
+ZEND_API int require_filename(char *filename CLS_DC);
+ZEND_API int use_filename(char *filename, uint filename_length CLS_DC);
ZEND_API zend_op_array *compile_files(int mark_as_ref CLS_DC, int file_count, ...);
ZEND_API zend_op_array *v_compile_files(int mark_as_ref CLS_DC, int file_count, va_list files);
ZEND_API zend_op_array *compile_string(zval *source_string CLS_DC);