function psi\fopen(string $path, string $mode) : object {
let path = pathval($path);
let mode = strval($mode);
- return to_object(*fopen);
+ return to_object(fopen);
}
// extern int fclose(FILE *stream);
return void(rewind);
}
-extern int printf(const char *fmt, ...);
+//extern int printf(const char *format, ...);
function psi\printf(string $fmt, mixed ...$args) : int {
- let fmt = strval($fmt);
+ let format = strval($fmt);
return to_int(printf);
}
+