php4-beta | 200004
Date: 04/30/00
- Next message: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- In reply to: Sascha Schumann: "[PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Next in thread: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Reply: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
>sas Sat Apr 29 20:06:30 2000 EDT
>
> Modified files:
> /php4 php_virtual_cwd.c php_virtual_cwd.h
> Log:
> 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 <email protected>
>For additional commands, e-mail: php4beta-help <email protected>
>To contact the list administrators, e-mail: php4beta-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- In reply to: Sascha Schumann: "[PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Next in thread: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Reply: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 php_virtual_cwd.c php_virtual_cwd.h"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

