Bug #54535 [NEW]: WSA cleanup executes before MSHUTDOWN
| From: | dylan dot arnold at gmail dot com | Date: | Fri, 15 Apr 2011 00:00:03 +0000 |
| Subject: | Bug #54535 [NEW]: WSA cleanup executes before MSHUTDOWN | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-160176@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows
PHP version: 5.3SVN-2011-04-14 (snap)
Package: Unknown/Other Function
Bug Type: Bug
Bug description:WSA cleanup executes before MSHUTDOWN
Description:
------------
I have a custom PHP extension and when debugging in windows I found that
winsock
is shutdown by PHP before my extensions MSHUTDOWN is run.
This is a problem because I do my own graceful shutdown of a stream in
MSHUTDOWN.
Inside main/main.c in php_module_shutdown
WSACleanup() executes before zend_shutdown(TSRMLS_C)
The cleanup really needs to be done after zend_shutdown.
This is not a major considering I primarily develop in linux but surely
this
could be a problem for others.
Thanks
--
Edit bug report at http://bugs.php.net/bug.php?id=54535&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54535&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54535&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54535&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54535&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54535&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54535&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54535&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54535&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54535&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54535&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54535&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54535&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54535&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54535&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54535&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54535&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54535&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54535&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54535&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54535&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54535&r=mysqlcfg