[PHP] how to detect error

2002-04-12 Thread Charmaine Tian
Hi, If a PHP script is terminated due to time out (defined by max_execution_time) or memory error (memory_limit exceeds), how can I detect the error in code? connection_timeout() is deprecated as of 4.0.5, and connection_status() does not return the correct value when time out happens. Any solu

[PHP] error status - how to get it

2002-04-10 Thread Charmaine Tian
Hi there, How can I determine if a script is terminated normally or with an error (execution time out, memory limit exceeded, etc.)? I'm writing a new PHP extension, and I need to generate an alert if the script is terminted due to a timeout error or memory limit exceeded error. However, I canno

[PHP] how to compile a dynamic extension

2002-03-25 Thread Charmaine Tian
Hi there, I have my own extension and I need to compile it with PHP. I was able to use the automatic build system to compile it as a static module (--with-mymodule or --enable-mymodule). However, I cannot find any documentation on how to compile it as a shared module. Can anybody enlgihten me how

[PHP] how to control hook calling order

2002-01-14 Thread Charmaine Tian
be the first one called among all extension's RINIT funcs. Is there any way that allows me to control the calling order of the module_startup/shutdown functions and request_startup/shutdown functions of my own extension relative to other extensions? I'm using PHP-4.1.0 on Linux. Thank