Re: [ZEND-ENGINE-CVS] cvs: TSRM / tsrm_virtual_cwd.c
| From: | Rob Richards | Date: | Sat, 05 Aug 2006 12:31:06 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: TSRM / tsrm_virtual_cwd.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-5166@lists.php.net to get a copy of this message | ||
I think you applied the logic to the wrong function. Using attached
patch, the examples in bugs 38276 and 37918 work correctly.
Rob
Antony Dovgal wrote:
> tony2001 Fri Aug 4 20:54:44 2006 UTC
>
> Modified files:
> /TSRM tsrm_virtual_cwd.c
> Log:
> revert previous patch, it's wrong
>
>
>
> http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.83&r2=1.84&diff_format=u
> Index: TSRM/tsrm_virtual_cwd.c
> diff -u TSRM/tsrm_virtual_cwd.c:1.83 TSRM/tsrm_virtual_cwd.c:1.84
> --- TSRM/tsrm_virtual_cwd.c:1.83 Thu Aug 3 14:16:56 2006
> +++ TSRM/tsrm_virtual_cwd.c Fri Aug 4 20:54:44 2006
> @@ -17,7 +17,7 @@
> +----------------------------------------------------------------------+
> */
>
> -/* $Id: tsrm_virtual_cwd.c,v 1.83 2006/08/03 14:16:56 tony2001 Exp $ */
> +/* $Id: tsrm_virtual_cwd.c,v 1.84 2006/08/04 20:54:44 tony2001 Exp $ */
>
> #include <sys/types.h>
> #include <sys/stat.h>
> @@ -706,9 +706,7 @@
> }
>
> CWD_STATE_COPY(&new_state, &CWDG(cwd));
> - if (virtual_file_ex(&new_state, path, NULL, 1)) {
> - return -1;
> - }
> + virtual_file_ex(&new_state, path, NULL, 1);
>
> f = fopen(new_state.cwd, mode);
>
>
>