1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 13:12:16 +02:00

Fix typo, add prototype for use_filename().

This commit is contained in:
Stig S. Bakken
1999-12-04 11:45:14 +00:00
parent 3570e8891d
commit aaadc71d5d
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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);