Re: [INTERNALS-WIN] RE: [PHP-DEV] Differences in VC6 and VC9 Windows builds and MSSQL Driver.
| From: | William A. Rowe, Jr. | Date: | Mon, 05 Jan 2009 20:31:50 +0000 |
| Subject: | Re: [INTERNALS-WIN] RE: [PHP-DEV] Differences in VC6 and VC9 Windows builds and MSSQL Driver. | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-345@lists.php.net to get a copy of this message | ||
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 :)