ID:               45617
 User updated by:  herps at raqtweak dot com
 Reported By:      herps at raqtweak dot com
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

I'm sorry, I must have forgotten to mention that Zeev (php team)
mentioned that ZTS is not very stable, and since it works without ZTS,
but not with....

And yes, I did look at Sara's articles, and already tried everything
she put in there. No go...

I'm not using this as a support list, so I do think we should at least
look at it?
Thanks.


Previous Comments:
------------------------------------------------------------------------

[2008-07-24 18:23:15] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This place is not for support for writing extensions but reporting
errors in PHP. Best place for such questions would be the pecl-dev
mailing list.

For you're problem: Please learn how ZTS/TSRM works before randomly
placing macros in the code, a good start might be Sara's book about
extending PHP or her blog article on TSRM stuff (use your favorite
search engine for finding that...)

------------------------------------------------------------------------

[2008-07-24 17:12:41] herps at raqtweak dot com

Description:
------------
Hi,

I am using a custom written PHP module, originally written for PHP4. It
is a connector for a custom written database. The script works fine,
even under PHP5.

Problems arise when I compile Apache as MPM Worker, which means ZTS for
PHP. When we use ZTS, things crash.

The piece of code it concerns, according to the gdb output, can be
found in the link provided to the source.

I also included a GDB backtrace. The problem ONLY occurs when a script,
which of course uses the module, is called. In all other cases, PHP and
Apache will remain running!

Reproduce code:
---------------
http://www.raqtweak.com/downloads/source.txt

Actual result:
--------------
0x00cdd1d8 in _zend_list_find (id=14, type=0xa4652e08,
tsrm_ls=0xb97b2ef4) at
/usr/src/redhat/BUILD/php-5.2.6/Zend/zend_list.c:72
72              if (zend_hash_index_find(&EG(regular_list), id, (void
**) &le)==SUCCESS) {


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45617&edit=1

Reply via email to