mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
@ "use" is not yet supported; instead use include_once() or require_once()
@ for the time being (Andi, Zend library)
This commit is contained in:
parent
f2ff9eeef5
commit
938598b8d2
@ -539,6 +539,10 @@ int require_filename(char *filename, zend_bool unique CLS_DC)
|
||||
|
||||
int use_filename(char *filename, uint filename_length CLS_DC)
|
||||
{
|
||||
zend_error(E_COMPILE_ERROR,"use: Not yet supported. Please use include_once() or require_once()");
|
||||
return FAILURE;
|
||||
|
||||
#if 0
|
||||
zend_file_handle file_handle;
|
||||
|
||||
file_handle.filename = (char *) emalloc(filename_length + zend_uv.import_use_extension_length);
|
||||
@ -554,6 +558,7 @@ int use_filename(char *filename, uint filename_length CLS_DC)
|
||||
return FAILURE; /* will never get here */
|
||||
}
|
||||
return SUCCESS;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user