]> granicus.if.org Git - php/commitdiff
@ "use" is not yet supported; instead use include_once() or require_once()
authorAndi Gutmans <andi@php.net>
Sat, 15 Apr 2000 13:56:09 +0000 (13:56 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 15 Apr 2000 13:56:09 +0000 (13:56 +0000)
@  for the time being (Andi, Zend library)

Zend/zend-scanner.l

index 90f8d0eff40f092a40ba71f021156fa18082eb50..0d4c67f00f1ebd92c3278de1fc3e54a57d6278d5 100644 (file)
@@ -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
 }