Re: PHP C++ extension on Windows
| From: | Anatol Belski | Date: | Fri, 09 May 2014 13:38:01 +0000 |
| Subject: | Re: PHP C++ extension on Windows | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74095@lists.php.net to get a copy of this message | ||
Hi Martin,
On Fri, May 9, 2014 14:13, Martin Keckeis wrote:
> Hello together,
>
>
> the compiled module is now loaded (2 functions work, which dont need the
> dll extension from SAP) and its also shown in phpInfo....
>
> But ASAP the extension is executed with dll dependency -> it crashes....
>
>
> @Pierre
> Is it a problem when the dlls are getting partly loaded from
> C:\Windows\SysWOW64\...
> See here the error report:
>
> https://gist.github.com/ThaDafinser/e6380157c4f77a3286e5#file-report_crash
> -txt-L47-L96
>
How do you compile the dependency lib? It should use /MD and be non debug
for the release build. Also the dependency build has to match the
corresponding CRT and paltform used for PHP build. Such mistakes are the
frequent reasons for fail. Quite unlikely it has something to do with PHP
itself. For the particular exception 80000003 you experience it would also
make sense to consult something like msdn or stackoverflow as that
exception is a general one and can have many causes.
Regards
Anatol