Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h
| From: | Andi Gutmans | Date: | Sun, 30 Apr 2000 04:19:20 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14185@lists.php.net to get a copy of this message | ||
Sascha,
I checked glibc before writing the wrapper and this was the prototype of their function definition (I also thought it was weird that they weren't using ...). Maybe what I looked at was some internal open()? Did you get a compile error?
Andi
At 03:06 AM 4/30/00 +0000, Sascha Schumann wrote:
--- Andi Gutmans <andi@zend.com> http://www.zend.com/sas Sat Apr 29 20:06:30 2000 EDTModified files:/php4 php_virtual_cwd.c php_virtual_cwd.hLog: Fix virtual_open() by adding ellipse Index: php4/php_virtual_cwd.c diff -u php4/php_virtual_cwd.c:1.38 php4/php_virtual_cwd.c:1.39 --- php4/php_virtual_cwd.c:1.38 Sat Apr 29 12:01:58 2000+++ php4/php_virtual_cwd.c Sat Apr 29 20:06:00 2000@@ -393,7 +393,7 @@return f;} -CWD_API int virtual_open(const char *path, int flags) +CWD_API int virtual_open(const char *path, int flags, ...) {cwd_state new_state; int f;Index: php4/php_virtual_cwd.h diff -u php4/php_virtual_cwd.h:1.16 php4/php_virtual_cwd.h:1.17 --- php4/php_virtual_cwd.h:1.16 Sat Apr 29 12:01:58 2000+++ php4/php_virtual_cwd.h Sat Apr 29 20:06:00 2000@@ -42,7 +42,7 @@ CWD_API int virtual_chdir_file(char *path); CWD_API int virtual_filepath(char *path, char **filepath); CWD_API FILE *virtual_fopen(const char *path, const char *mode); -CWD_API int virtual_open(const char *path, int flags); +CWD_API int virtual_open(const char *path, int flags, ...); CWD_API int virtual_creat(const char *path, mode_t mode); CWD_API int virtual_stat(const char *path, struct stat *buf); #ifndef ZEND_WIN32 -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net