Re: [INTERNALS-WIN] RE: [PHP-DEV] Differences in VC6 and VC9 Windows builds and MSSQL Driver.
[email protected] ("William A. Rowe, Jr.")
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Pierre Joye wrote: > > Memory and handles, that makes a pretty high numbers of WTF. I'm not > saying that is not possible, I'm saying that it is a (very) bad idea. > Especially in php with all its dependencies. Not in consuming PHP from a higher level app. But for PHP's dependencies where you have explicit contracts to free() what is returned to you from some library, share other crt-managed objects, you are correct. Don't confuse fd's and FILE * objects with Handles; those are completely safe to share and hand off, because they are Win32/NtDll objects not managed by the crt. It's a Bad Idea (tm) if you aren't paying attention, that's for certain :)