# phpize returns -1

- Thread: https://externals.io/message/44097
- Original archive: https://news-web.php.net/php.internals/44097
- Started by Greg Beaver on 2009-05-30T00:30:13+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #44097 — Greg Beaver — 2009-05-30T00:30:13+00:00

URL: https://externals.io/message/44097#44097

Hi,

Could someone fix phpize to make it return 0 on success?  It always
returns -1 when opened via `proc_open()`, which is exceedingly annoying
when you're trying to use it in a PHP script.

Thanks,
Greg

---

## #44098 — Christopher Jones — 2009-05-30T00:39:26+00:00

URL: https://externals.io/message/44097#44098 · In reply to: #44097

Greg Beaver wrote:
 > Hi,
 >
 > Could someone fix phpize to make it return 0 on success?  It always
 > returns -1 when opened via `proc_open()`, which is exceedingly annoying
 > when you're trying to use it in a PHP script.
 >
 > Thanks,
 > Greg
 >

The bottom of phpize does return 0 and should be reached when all
works OK.  I looked into a similar problem a while back.

Are you seeing a signal handling issue like http://bugs.php.net/bug.php?id=8992 ?
I still see `pclose()` return failure when I use --enable-sigchild.  See
http://blogs.oracle.com/opal/2009/03/php_oci8_signal_handling_and_e_1.html

Chris

-- 
Email: christopher.jones@oracle.com
Twitter:  http://twitter.com/ghrd

---

## #44099 — Greg Beaver — 2009-05-30T02:50:20+00:00

URL: https://externals.io/message/44097#44099 · In reply to: #44098

Christopher Jones wrote:
> 
> 
> Greg Beaver wrote:
> > […]
> 
> The bottom of phpize does return 0 and should be reached when all
> works OK.  I looked into a similar problem a while back.
> 
> Are you seeing a signal handling issue like
> http://bugs.php.net/bug.php?id=8992 ?
> I still see `pclose()` return failure when I use --enable-sigchild.  See
> http://blogs.oracle.com/opal/2009/03/php_oci8_signal_handling_and_e_1.html

Hi Chris,

Thanks for the reply.  I realized a few minutes ago that I was checking
the wrong place for the exit code, sorry for the noise.

Thanks,
Greg
