diff options
author | Stig S. Bakken <stig@php.net> | 1999-12-04 11:45:14 +0000 |
---|---|---|
committer | Stig S. Bakken <stig@php.net> | 1999-12-04 11:45:14 +0000 |
commit | aaadc71d5d3e2b996f920a92c92ca0aebb367de8 (patch) | |
tree | fc44aa85707fa7b487ce0bc65e6fcc15d909bbfa /Zend | |
parent | 3570e8891df6f584262f4289ffcf795f2057c473 (diff) | |
download | php-git-aaadc71d5d3e2b996f920a92c92ca0aebb367de8.tar.gz |
Fix typo, add prototype for use_filename().
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend-scanner.l | 2 | ||||
-rw-r--r-- | Zend/zend_compile.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l index 1561102965..08727726f7 100644 --- a/Zend/zend-scanner.l +++ b/Zend/zend-scanner.l @@ -490,7 +490,7 @@ int use_filename(char *filename, zend_bool unique CLS_DC) filenamelen = strlen(filename); newfile = emalloc(filenamelen + 5); strcpy(newfile, filename); - strcpy(newfile+strnamelen, ".php"); + strcpy(newfile+filenamelen, ".php"); newfile[filenamelen+4] = '\0'; file_handle.type = ZEND_HANDLE_FILENAME; diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 320592d170..c3ae28421e 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -347,6 +347,7 @@ void do_extended_fcall_end(CLS_D); 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 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); |