Wouldn't it be better to just remove proc_open from the function
table under netware?

It doesn't make sense to do all that work and then fail because there is
not way to execute a new process (fork() + exec()).

--Wez.

On Fri, 3 Jan 2003, Anantha Kesari H Y wrote:

> hyanantha             Fri Jan  3 09:37:43 2003 EDT
>
>   Modified files:
>     /php4/ext/standard        exec.c file.c filestat.c html.c syslog.c
>   Log:
>   Modified for NetWare.
>
>
> Index: php4/ext/standard/exec.c
> diff -u php4/ext/standard/exec.c:1.88 php4/ext/standard/exec.c:1.89
> --- php4/ext/standard/exec.c:1.88     Tue Dec 31 11:07:38 2002
> +++ php4/ext/standard/exec.c  Fri Jan  3 09:37:40 2003
> @@ -895,6 +895,18 @@
>
>       child = pi.hProcess;
>       CloseHandle(pi.hThread);
> +
> +#elif defined(NETWARE)
> +
> +     /* clean up all the descriptors */
> +     for (i = 0; i < ndesc; i++) {
> +             close(descriptors[i].childend);
> +             close(descriptors[i].parentend);
> +     }
> +
> +     php_error_docref(NULL TSRMLS_CC, E_WARNING, "fork not supported on NetWare");
> +
> +     goto exit_fail;


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to