<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a PHP 5 Extension with Visual C++ 2005</title>
	<atom:link href="http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/</link>
	<description>&#34;Hello World&#34; - The SlickEdit Developer Blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:18:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7723</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 08 Feb 2012 10:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7723</guid>
		<description>&lt;b&gt;Hi,&lt;/b&gt;
I made a test function for a package travel booking machine, which works very fine:

ZEND_FUNCTION(MiramarHotelBuchung)
{
long miramarHID = 0;
long miramarFID = 0;
if (zend_parse_parameters(2, &quot;ll&quot;, &amp;miramarHID, &amp;miramarFID ) == FAILURE) 
{
RETURN_STRING(&quot;Bad parameters!&quot;, true);
}
miramarHID *= 2;
miramarFID *= 2;
std::string a = &quot;&lt;a href=&#039;http://www.gimba.de/Miramar/MiramarHotelBuchung.php&#039; rel=&quot;nofollow&quot;&gt;ID&#039;s in PHP-Extension-dll jeweils mit 2 multipliziert&lt;/a&gt;&quot;;
std::string HID = &quot;&quot;;
std::string FID = &quot;&quot;;
std::stringstream e;
e &lt;&lt; miramarHID;
HID = e.str();
e.str(&quot;&quot;);
e &lt;&lt; miramarFID;
FID = e.str();
std::string d = a + &quot;&quot; + &quot;&quot; 
+ &quot;HotelID&quot; + HID 
+ &quot;&quot;
+ &quot;FlugID&quot;  + FID + &quot;&quot;
+ &quot;&quot;;
RETURN_STRING(d.c_str(), true);
}
best regards
http://www.bangert-erp.de
&lt;b&gt;Axel Arnold Bangert - Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,</b><br />
I made a test function for a package travel booking machine, which works very fine:</p>
<p>ZEND_FUNCTION(MiramarHotelBuchung)<br />
{<br />
long miramarHID = 0;<br />
long miramarFID = 0;<br />
if (zend_parse_parameters(2, &#8220;ll&#8221;, &amp;miramarHID, &amp;miramarFID ) == FAILURE)<br />
{<br />
RETURN_STRING(&#8220;Bad parameters!&#8221;, true);<br />
}<br />
miramarHID *= 2;<br />
miramarFID *= 2;<br />
std::string a = &#8220;<a href='http://www.gimba.de/Miramar/MiramarHotelBuchung.php' rel="nofollow">ID&#8217;s in PHP-Extension-dll jeweils mit 2 multipliziert</a>&#8220;;<br />
std::string HID = &#8220;&#8221;;<br />
std::string FID = &#8220;&#8221;;<br />
std::stringstream e;<br />
e &lt;&lt; miramarHID;<br />
HID = e.str();<br />
e.str(&quot;&quot;);<br />
e &lt;&lt; miramarFID;<br />
FID = e.str();<br />
std::string d = a + &quot;&#8221; + &#8220;&#8221;<br />
+ &#8220;HotelID&#8221; + HID<br />
+ &#8220;&#8221;<br />
+ &#8220;FlugID&#8221;  + FID + &#8220;&#8221;<br />
+ &#8220;&#8221;;<br />
RETURN_STRING(d.c_str(), true);<br />
}<br />
best regards<br />
<a href="http://www.bangert-erp.de" rel="nofollow">http://www.bangert-erp.de</a><br />
<b>Axel Arnold Bangert &#8211; Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7722</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 06 Feb 2012 11:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7722</guid>
		<description>&lt;b&gt;Hi&lt;/b&gt;
to get a working compilation you have to add that in ZEND_CONFIG_W32_H – for this extension
returns converted strings (c_str()):

//wird benötigt für string stringstream
#include 
#include 

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi</b><br />
to get a working compilation you have to add that in ZEND_CONFIG_W32_H – for this extension<br />
returns converted strings (c_str()):</p>
<p>//wird benötigt für string stringstream<br />
#include<br />
#include </p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7721</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 06 Feb 2012 11:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7721</guid>
		<description>&lt;b&gt;Hi&lt;/b&gt;
to get a working compilation you have to add that in ZEND_CONFIG_W32_H - for this extension
works with Strings:

//wird benötigt für string und stringstream
#include 
#include 

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi</b><br />
to get a working compilation you have to add that in ZEND_CONFIG_W32_H &#8211; for this extension<br />
works with Strings:</p>
<p>//wird benötigt für string und stringstream<br />
#include<br />
#include </p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7720</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 06 Feb 2012 11:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7720</guid>
		<description>&lt;b&gt;Hi,&lt;/b&gt;
here is the VS2008 source code for php 5.3.9 x32 NTS on Zend Server CE with Zend Framework 1.1.11 or 2.0 Beta including new phpPages for testing:
http://www.gimba.de/PHP-Custom-Ext-2008.rar

The output path for the dll is set to:
C:\Program Files (x86)\Zend\ZendServer\lib\phpext
which is the standard phpext folder. You have to stop Apache before compiling.

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,</b><br />
here is the VS2008 source code for php 5.3.9 x32 NTS on Zend Server CE with Zend Framework 1.1.11 or 2.0 Beta including new phpPages for testing:<br />
<a href="http://www.gimba.de/PHP-Custom-Ext-2008.rar" rel="nofollow">http://www.gimba.de/PHP-Custom-Ext-2008.rar</a></p>
<p>The output path for the dll is set to:<br />
C:\Program Files (x86)\Zend\ZendServer\lib\phpext<br />
which is the standard phpext folder. You have to stop Apache before compiling.</p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7710</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 17:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7710</guid>
		<description>&lt;b&gt;Hi,&lt;/b&gt;
here is the VS2008 source code for php 5.3.9 x32 NTS:

http://www.gimba.de/PHP-Custom-Ext-2008.rar

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,</b><br />
here is the VS2008 source code for php 5.3.9 x32 NTS:</p>
<p><a href="http://www.gimba.de/PHP-Custom-Ext-2008.rar" rel="nofollow">http://www.gimba.de/PHP-Custom-Ext-2008.rar</a></p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7709</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 17:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7709</guid>
		<description>&lt;b&gt;Hi,&lt;/b&gt;
the above mentioned way works, but it is very difficult.

The simplest way is to leave out the preprocessor defintion for ZTS 1. ZTS 0 does not work, but if you leave it out completely
it compiles a perfect NTS extension.Here is the screenshot for the &lt;b&gt;running&lt;/b&gt; NTS extension:

&lt;b&gt;http://www.gimba.de/php_cust_ext_works.jpg&lt;/b&gt;

That’s it.
Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,</b><br />
the above mentioned way works, but it is very difficult.</p>
<p>The simplest way is to leave out the preprocessor defintion for ZTS 1. ZTS 0 does not work, but if you leave it out completely<br />
it compiles a perfect NTS extension.Here is the screenshot for the <b>running</b> NTS extension:</p>
<p><b><a href="http://www.gimba.de/php_cust_ext_works.jpg" rel="nofollow">http://www.gimba.de/php_cust_ext_works.jpg</a></b></p>
<p>That’s it.<br />
Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7707</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 14:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7707</guid>
		<description>&lt;b&gt;Hi,&lt;/b&gt;
here is the solution to build php 5.3.9 NTS binaries from source:
&lt;b&gt;https://wiki.php.net/internals/windows/stepbystepbuild&lt;/b&gt;

You have to use the Windows SDK for that. For me it is the 7.1 for server 2008 with that command to start:
setenv /x86 /2008 /release
and so on... as described above ...

That&#039;s it.

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,</b><br />
here is the solution to build php 5.3.9 NTS binaries from source:<br />
<b><a href="https://wiki.php.net/internals/windows/stepbystepbuild" rel="nofollow">https://wiki.php.net/internals/windows/stepbystepbuild</a></b></p>
<p>You have to use the Windows SDK for that. For me it is the 7.1 for server 2008 with that command to start:<br />
setenv /x86 /2008 /release<br />
and so on&#8230; as described above &#8230;</p>
<p>That&#8217;s it.</p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7706</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 12:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7706</guid>
		<description>&lt;b&gt;Hi,
the solution is, that for compiling NTS, we have to set ZTS from =1 to &lt;b&gt;ZTS=0&lt;/b&gt; in the macro definition.

I don&#039;t know exactly where, but I guess, that it&#039;s in the:

C:\Server\PHP5src\configure.in 

, which is used by the configure.bat. It seems to be this directive, which has to be changed to:

&lt;b&gt;AC_DEFINE(ZTS,0,[ ])&lt;/b&gt;

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,<br />
the solution is, that for compiling NTS, we have to set ZTS from =1 to </b><b>ZTS=0</b> in the macro definition.</p>
<p>I don&#8217;t know exactly where, but I guess, that it&#8217;s in the:</p>
<p>C:\Server\PHP5src\configure.in </p>
<p>, which is used by the configure.bat. It seems to be this directive, which has to be changed to:</p>
<p><b>AC_DEFINE(ZTS,0,[ ])</b></p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7705</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 11:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7705</guid>
		<description>&lt;b&gt;Hi,&lt;/b&gt;
I’m just one click away from the solution for Zend-Server CE php installation types.

The Zend-Server CE installation of php is &lt;b&gt;NOT-Thread-Safe(NTS)&lt;/b&gt;. So it expects the php5.lib and not the php5ts.lib in the folder C:\Server\PHP\dev and the php5.dll in C:\Server\PHP.

But in the compilation procedure php5ts.lib is called and not – as it should – php5.lib for TS compilation. This though I use the php5.3.9 NTS Binaries.

&lt;b&gt;The source code is explicidly signed by ZEND php 5.39 for both – TS and NTS compilations - but I guess that this is not true - it must be the source for TS!!!!!!&lt;/b&gt;

So the only question is where to change the compilation type to Thread-Safe (TS)mode in your example. This is done in Linker - Inputs - Additional Dependencies = php5.lib

Best regards
&lt;b&gt;Axel Arnold Bangert -Herzogenrath 2012&lt;b&gt;</description>
		<content:encoded><![CDATA[<p><b>Hi,</b><br />
I’m just one click away from the solution for Zend-Server CE php installation types.</p>
<p>The Zend-Server CE installation of php is <b>NOT-Thread-Safe(NTS)</b>. So it expects the php5.lib and not the php5ts.lib in the folder C:\Server\PHP\dev and the php5.dll in C:\Server\PHP.</p>
<p>But in the compilation procedure php5ts.lib is called and not – as it should – php5.lib for TS compilation. This though I use the php5.3.9 NTS Binaries.</p>
<p><b>The source code is explicidly signed by ZEND php 5.39 for both – TS and NTS compilations &#8211; but I guess that this is not true &#8211; it must be the source for TS!!!!!!</b></p>
<p>So the only question is where to change the compilation type to Thread-Safe (TS)mode in your example. This is done in Linker &#8211; Inputs &#8211; Additional Dependencies = php5.lib</p>
<p>Best regards<br />
<b>Axel Arnold Bangert -Herzogenrath 2012</b><b></b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7704</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 11:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7704</guid>
		<description>Hi,
I&#039;m just one click away from the solution for Zend-Server CE php installtion types. 

The Zend-Server CE installation of php is Thread-Safe(TS). So it expects the php5.lib and not the php5ts.lib in the folder C:\Server\PHP\dev and the php5.dll in C:\Server\PHP.

But in the compilation procedure php5ts.lib is called and not - as it should - php5.lib for TS compilation. This though I use the php5.3.9 TS Binaries. 

The source code is explicidly signed by ZEND php 5.39 for both - TS and NTS compilations.

So the only question is where to cahnge the compilation type to Thread-Safe (TS)mode in your example??????? Please drop me a line!

Best regards
Axel Arnold Bangert -Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m just one click away from the solution for Zend-Server CE php installtion types. </p>
<p>The Zend-Server CE installation of php is Thread-Safe(TS). So it expects the php5.lib and not the php5ts.lib in the folder C:\Server\PHP\dev and the php5.dll in C:\Server\PHP.</p>
<p>But in the compilation procedure php5ts.lib is called and not &#8211; as it should &#8211; php5.lib for TS compilation. This though I use the php5.3.9 TS Binaries. </p>
<p>The source code is explicidly signed by ZEND php 5.39 for both &#8211; TS and NTS compilations.</p>
<p>So the only question is where to cahnge the compilation type to Thread-Safe (TS)mode in your example??????? Please drop me a line!</p>
<p>Best regards<br />
Axel Arnold Bangert -Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7703</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 11:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7703</guid>
		<description>Hi,
now I found the answer, why it does not work:
http://www.gimba.de/php_cust_ext_Error.jpg

And I last compiled it with with NTS - that&#039;s it.

Now I have to find out why my first TS build did not work? I&#039;ll see.
Best regards
Axel Arnold Bangert -Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
now I found the answer, why it does not work:<br />
<a href="http://www.gimba.de/php_cust_ext_Error.jpg" rel="nofollow">http://www.gimba.de/php_cust_ext_Error.jpg</a></p>
<p>And I last compiled it with with NTS &#8211; that&#8217;s it.</p>
<p>Now I have to find out why my first TS build did not work? I&#8217;ll see.<br />
Best regards<br />
Axel Arnold Bangert -Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7702</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7702</guid>
		<description>Hi,
I shall try the original way to create so and dll, for this includes the specifice system environment configuration builds, which is described by ZEND itself here:

http://de3.php.net/manual/de/internals2.ze1.zendapi.php

If that succeeds for me. I shall post it here.

Best regards
Axel Arnold Bangert -Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I shall try the original way to create so and dll, for this includes the specifice system environment configuration builds, which is described by ZEND itself here:</p>
<p><a href="http://de3.php.net/manual/de/internals2.ze1.zendapi.php" rel="nofollow">http://de3.php.net/manual/de/internals2.ze1.zendapi.php</a></p>
<p>If that succeeds for me. I shall post it here.</p>
<p>Best regards<br />
Axel Arnold Bangert -Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7701</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7701</guid>
		<description>Hi,
I analysed the compiled php_cust_ext.dll with dll-viewer. 

The only exported fuction is get_module (http://www.gimba.de/DllViewer_php_custom_ext.jpg).

You define the module name in customext.cpp with:
CustomExtModule_module_entry = {
    STANDARD_MODULE_HEADER,
    &quot;CustomExt Module&quot;,
    CustomExtModule_functions,
    NULL, NULL, NULL, NULL, NULL,
    NO_VERSION_YET, STANDARD_MODULE_PROPERTIES

This module name is not right defined - to be callable it must be without space like that:&quot;CustomExtModule&quot;

In customext.cpp ZEND_GET_Module is called.
zend_module_entry 

For ZEND_GET_MODULE a shortcut is created in zend_API.h for get_module - zend_API.h:

#define ZEND_GET_MODULE(name) \
    BEGIN_EXTERN_C()\
	ZEND_DLEXPORT zend_module_entry *get_module(void) { return &amp;name##_module_entry; }\
    END_EXTERN_C()

But all that is not the cause why in the zend-server CE implementation the extension dll is not recognized, though the php version is identical.

Best regards
Axel Arnold Bangert -Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I analysed the compiled php_cust_ext.dll with dll-viewer. </p>
<p>The only exported fuction is get_module (<a href="http://www.gimba.de/DllViewer_php_custom_ext.jpg" rel="nofollow">http://www.gimba.de/DllViewer_php_custom_ext.jpg</a>).</p>
<p>You define the module name in customext.cpp with:<br />
CustomExtModule_module_entry = {<br />
    STANDARD_MODULE_HEADER,<br />
    &#8220;CustomExt Module&#8221;,<br />
    CustomExtModule_functions,<br />
    NULL, NULL, NULL, NULL, NULL,<br />
    NO_VERSION_YET, STANDARD_MODULE_PROPERTIES</p>
<p>This module name is not right defined &#8211; to be callable it must be without space like that:&#8221;CustomExtModule&#8221;</p>
<p>In customext.cpp ZEND_GET_Module is called.<br />
zend_module_entry </p>
<p>For ZEND_GET_MODULE a shortcut is created in zend_API.h for get_module &#8211; zend_API.h:</p>
<p>#define ZEND_GET_MODULE(name) \<br />
    BEGIN_EXTERN_C()\<br />
	ZEND_DLEXPORT zend_module_entry *get_module(void) { return &amp;name##_module_entry; }\<br />
    END_EXTERN_C()</p>
<p>But all that is not the cause why in the zend-server CE implementation the extension dll is not recognized, though the php version is identical.</p>
<p>Best regards<br />
Axel Arnold Bangert -Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7700</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Mon, 30 Jan 2012 17:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7700</guid>
		<description>Hi,
I tried both NTS and TS - no success! It compiles fine, but it is not recognized by php.ini resp. Apache. I get no warning no log etc. though the log state is set to warn.

All used php binary dll&#039;s in C:\Server\PHP\ext\ ncorrespond exacty to the version and date of the C:\Program Files (x86)\Zend\ZendServer\lib\phpext\ binaryies (the date varies only in 5 days).

Now I don&#039;t know what to do further!

Best regards
Axel Arnold Bangert -Herzogenrath 2012

The only thing, which is possibly the cause could be Fast CGI</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tried both NTS and TS &#8211; no success! It compiles fine, but it is not recognized by php.ini resp. Apache. I get no warning no log etc. though the log state is set to warn.</p>
<p>All used php binary dll&#8217;s in C:\Server\PHP\ext\ ncorrespond exacty to the version and date of the C:\Program Files (x86)\Zend\ZendServer\lib\phpext\ binaryies (the date varies only in 5 days).</p>
<p>Now I don&#8217;t know what to do further!</p>
<p>Best regards<br />
Axel Arnold Bangert -Herzogenrath 2012</p>
<p>The only thing, which is possibly the cause could be Fast CGI</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7699</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Mon, 30 Jan 2012 13:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7699</guid>
		<description>Hi,
I made it with VS2008 and it ran trough all without any error or warning, but it shows not up in phpinfo though all settings are ok.
So I think, that there is a difference between php 5.3.9 source and binarys to the Zend php 5.3.9-ZS5.6.0. Though in the config of Zend php TS is disabled, it could never the less be a TS binary version (the source is the same).
Resume:
Zend php 5.3.9 implementation seems to be different to the original implementation. Therefore this dll cannot work in Zend php?
Best regards
Axel Arnold Bangert -Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I made it with VS2008 and it ran trough all without any error or warning, but it shows not up in phpinfo though all settings are ok.<br />
So I think, that there is a difference between php 5.3.9 source and binarys to the Zend php 5.3.9-ZS5.6.0. Though in the config of Zend php TS is disabled, it could never the less be a TS binary version (the source is the same).<br />
Resume:<br />
Zend php 5.3.9 implementation seems to be different to the original implementation. Therefore this dll cannot work in Zend php?<br />
Best regards<br />
Axel Arnold Bangert -Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7696</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Mon, 30 Jan 2012 09:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7696</guid>
		<description>Hi, 
1. 
in php 5.3.9 nts the config.w32.h is missing, for it is now only created at config time. So I had to create that file by my own.

2. 
the php5.lib in the folder dev now has to be renamed for this project to php5ts.lib

3.
the linker - general $(OutDir)php_custom_ext.dll has to be renamed to $(OutDir)custom_ext.dll

After that the php5.3.9 compile in VS2010 worked without any warning and error.

Best regards
Axel Arnold Bangert - Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
1.<br />
in php 5.3.9 nts the config.w32.h is missing, for it is now only created at config time. So I had to create that file by my own.</p>
<p>2.<br />
the php5.lib in the folder dev now has to be renamed for this project to php5ts.lib</p>
<p>3.<br />
the linker &#8211; general $(OutDir)php_custom_ext.dll has to be renamed to $(OutDir)custom_ext.dll</p>
<p>After that the php5.3.9 compile in VS2010 worked without any warning and error.</p>
<p>Best regards<br />
Axel Arnold Bangert &#8211; Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Arnold Bangert</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7694</link>
		<dc:creator>Axel Arnold Bangert</dc:creator>
		<pubDate>Mon, 30 Jan 2012 05:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7694</guid>
		<description>Hi,
thanks for the fine article. I get an error in VS2010x32 from php.h: 
#else
#error &quot;Unknown SIZEOF_LONG&quot;
#endif
I can&#039;t solve that issue.

Some help would be very nice.
Best regards
Axel Arnold Bangert - Herzogenrath 2012</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for the fine article. I get an error in VS2010x32 from php.h:<br />
#else<br />
#error &#8220;Unknown SIZEOF_LONG&#8221;<br />
#endif<br />
I can&#8217;t solve that issue.</p>
<p>Some help would be very nice.<br />
Best regards<br />
Axel Arnold Bangert &#8211; Herzogenrath 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn easier way Aikido in Indonesia</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7692</link>
		<dc:creator>Learn easier way Aikido in Indonesia</dc:creator>
		<pubDate>Thu, 26 Jan 2012 14:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7692</guid>
		<description>&lt;strong&gt;Learn easier way Aikido in Indonesia...&lt;/strong&gt;

[...]Creating a PHP 5 Extension with Visual C++ 2005 &#187; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>Learn easier way Aikido in Indonesia&#8230;</strong></p>
<p>[...]Creating a PHP 5 Extension with Visual C++ 2005 &raquo; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nyobain</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7689</link>
		<dc:creator>nyobain</dc:creator>
		<pubDate>Mon, 23 Jan 2012 23:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7689</guid>
		<description>&lt;strong&gt;nyobain...&lt;/strong&gt;

[...]Creating a PHP 5 Extension with Visual C++ 2005 &#187; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>nyobain&#8230;</strong></p>
<p>[...]Creating a PHP 5 Extension with Visual C++ 2005 &raquo; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: new container</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7685</link>
		<dc:creator>new container</dc:creator>
		<pubDate>Thu, 19 Jan 2012 16:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7685</guid>
		<description>&lt;strong&gt;new container...&lt;/strong&gt;

[...]Creating a PHP 5 Extension with Visual C++ 2005 &#187; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>new container&#8230;</strong></p>
<p>[...]Creating a PHP 5 Extension with Visual C++ 2005 &raquo; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: learn php</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7678</link>
		<dc:creator>learn php</dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7678</guid>
		<description>&lt;strong&gt;learn php...&lt;/strong&gt;

[...]Creating a PHP 5 Extension with Visual C++ 2005 &#187; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>learn php&#8230;</strong></p>
<p>[...]Creating a PHP 5 Extension with Visual C++ 2005 &raquo; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Development London UK</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7639</link>
		<dc:creator>Web Development London UK</dc:creator>
		<pubDate>Thu, 29 Dec 2011 16:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7639</guid>
		<description>&lt;strong&gt;Web Development London UK...&lt;/strong&gt;

[...]Creating a PHP 5 Extension with Visual C++ 2005 &#187; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>Web Development London UK&#8230;</strong></p>
<p>[...]Creating a PHP 5 Extension with Visual C++ 2005 &raquo; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depression heal</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7586</link>
		<dc:creator>depression heal</dc:creator>
		<pubDate>Thu, 01 Dec 2011 16:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7586</guid>
		<description>&lt;strong&gt;depression heal...&lt;/strong&gt;

[...]Creating a PHP 5 Extension with Visual C++ 2005 &#187; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>depression heal&#8230;</strong></p>
<p>[...]Creating a PHP 5 Extension with Visual C++ 2005 &raquo; &quot;Hello World&quot; &#8211; The SlickEdit Developer Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frank</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7556</link>
		<dc:creator>frank</dc:creator>
		<pubDate>Sat, 12 Nov 2011 04:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7556</guid>
		<description>thanks for sharing!~</description>
		<content:encoded><![CDATA[<p>thanks for sharing!~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scott</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7492</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Tue, 11 Oct 2011 18:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7492</guid>
		<description>I have the following error when trying to load the extension (using wamp):

Unable to load dynamic library &#039;c:/wamp/bin/php/php5.3.8/ext/php_customext.dll&#039; - Invalid access to memory location.
 in Unknown on line 0

Anybody know how to fix this?</description>
		<content:encoded><![CDATA[<p>I have the following error when trying to load the extension (using wamp):</p>
<p>Unable to load dynamic library &#8216;c:/wamp/bin/php/php5.3.8/ext/php_customext.dll&#8217; &#8211; Invalid access to memory location.<br />
 in Unknown on line 0</p>
<p>Anybody know how to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: biagio</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7445</link>
		<dc:creator>biagio</dc:creator>
		<pubDate>Sun, 07 Aug 2011 08:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7445</guid>
		<description>I was wrong. I built php_custom_ext.dll with msvc++2010, on wamp 2.1  works!  thanks to the author</description>
		<content:encoded><![CDATA[<p>I was wrong. I built php_custom_ext.dll with msvc++2010, on wamp 2.1  works!  thanks to the author</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: biagio</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7438</link>
		<dc:creator>biagio</dc:creator>
		<pubDate>Thu, 04 Aug 2011 10:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7438</guid>
		<description>I am using 32bit wamp 2.1 with php 5.3.5, because I know that was compiled with MSVC6 also dll to be compiled with MSVC6 dll, correct?
After resolving the missing main/config.w32.h thanks Alain  62.,
I try to run MSVC6 PhpExtDll.dll build, and this is the output :
--------------------Configuration: PhpExtDll4 - Win32 Debug--------------------
Compiling...
CustomExt.cpp
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(85) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(93) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(104) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(110) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2146: syntax error : missing &#039;;&#039; before identifier &#039;addrlen&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#039;socklen_t&#039; : missing storage-class or type specifiers
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#039;addrlen&#039; : missing storage-class or type specifiers
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2146: syntax error : missing &#039;;&#039; before identifier &#039;addrlen&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#039;socklen_t&#039; : missing storage-class or type specifiers
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#039;addrlen&#039; : missing storage-class or type specifiers
stdafx.cpp
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(85) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(93) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(104) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(110) : error C2061: syntax error : identifier &#039;socklen_t&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2146: syntax error : missing &#039;;&#039; before identifier &#039;addrlen&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#039;socklen_t&#039; : missing storage-class or type specifiers
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#039;addrlen&#039; : missing storage-class or type specifiers
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2146: syntax error : missing &#039;;&#039; before identifier &#039;addrlen&#039;
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#039;socklen_t&#039; : missing storage-class or type specifiers
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#039;addrlen&#039; : missing storage-class or type specifiers
Error executing cl.exe.

PhpExtDll4.dll - 20 error(s), 0 warning(s)

someone can help me?</description>
		<content:encoded><![CDATA[<p>I am using 32bit wamp 2.1 with php 5.3.5, because I know that was compiled with MSVC6 also dll to be compiled with MSVC6 dll, correct?<br />
After resolving the missing main/config.w32.h thanks Alain  62.,<br />
I try to run MSVC6 PhpExtDll.dll build, and this is the output :<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Configuration: PhpExtDll4 &#8211; Win32 Debug&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Compiling&#8230;<br />
CustomExt.cpp<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(85) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(93) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(104) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(110) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2146: syntax error : missing &#8216;;&#8217; before identifier &#8216;addrlen&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#8216;socklen_t&#8217; : missing storage-class or type specifiers<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#8216;addrlen&#8217; : missing storage-class or type specifiers<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2146: syntax error : missing &#8216;;&#8217; before identifier &#8216;addrlen&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#8216;socklen_t&#8217; : missing storage-class or type specifiers<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#8216;addrlen&#8217; : missing storage-class or type specifiers<br />
stdafx.cpp<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(85) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(93) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(104) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(110) : error C2061: syntax error : identifier &#8216;socklen_t&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2146: syntax error : missing &#8216;;&#8217; before identifier &#8216;addrlen&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#8216;socklen_t&#8217; : missing storage-class or type specifiers<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(148) : error C2501: &#8216;addrlen&#8217; : missing storage-class or type specifiers<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2146: syntax error : missing &#8216;;&#8217; before identifier &#8216;addrlen&#8217;<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#8216;socklen_t&#8217; : missing storage-class or type specifiers<br />
C:wampPHPSourcephp-5.3.6mainstreams/php_stream_transport.h(157) : error C2501: &#8216;addrlen&#8217; : missing storage-class or type specifiers<br />
Error executing cl.exe.</p>
<p>PhpExtDll4.dll &#8211; 20 error(s), 0 warning(s)</p>
<p>someone can help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrik</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7424</link>
		<dc:creator>Patrik</dc:creator>
		<pubDate>Mon, 25 Jul 2011 09:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7424</guid>
		<description>If you are compiling with VC10, and consequently having issues getting the module to load under a VC9 or VC6 PHP binary, there is a quick, albeit dirty fix. Just open your custom module DLL in a hex editor, search for &quot;VC10&quot; (it should only appear once), and replace it with &quot;VC9&quot;. You&#039;ll need to add a 0x00 (thats hex 00) to the end to account for the length difference. Hope this helps someone!</description>
		<content:encoded><![CDATA[<p>If you are compiling with VC10, and consequently having issues getting the module to load under a VC9 or VC6 PHP binary, there is a quick, albeit dirty fix. Just open your custom module DLL in a hex editor, search for &#8220;VC10&#8243; (it should only appear once), and replace it with &#8220;VC9&#8243;. You&#8217;ll need to add a 0&#215;00 (thats hex 00) to the end to account for the length difference. Hope this helps someone!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: niran</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7294</link>
		<dc:creator>niran</dc:creator>
		<pubDate>Sun, 24 Apr 2011 10:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7294</guid>
		<description>Had the config.w32.h not found error. When i tried to run configure.js, it was giving bison required. So I commented the three lines in configure.js starting from line#2532.
Now it compiles!

And thanks for using recaptcha (which has audio challenges as well).</description>
		<content:encoded><![CDATA[<p>Had the config.w32.h not found error. When i tried to run configure.js, it was giving bison required. So I commented the three lines in configure.js starting from line#2532.<br />
Now it compiles!</p>
<p>And thanks for using recaptcha (which has audio challenges as well).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: windows下VC6编译PHP5.3.5 DLL 扩展 &#124; NoNZero&#039;s Blog</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-7290</link>
		<dc:creator>windows下VC6编译PHP5.3.5 DLL 扩展 &#124; NoNZero&#039;s Blog</dc:creator>
		<pubDate>Thu, 14 Apr 2011 14:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-7290</guid>
		<description>[...] Creating a PHP 5 Extension with Visual C++ 2005 [...]</description>
		<content:encoded><![CDATA[<p>[...] Creating a PHP 5 Extension with Visual C++ 2005 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How do I compile PHP with Microsoft Visual C++ 2008? &#124; DEEP in PHP</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-4633</link>
		<dc:creator>How do I compile PHP with Microsoft Visual C++ 2008? &#124; DEEP in PHP</dc:creator>
		<pubDate>Mon, 07 Feb 2011 15:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-4633</guid>
		<description>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial). [...]</description>
		<content:encoded><![CDATA[<p>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP extension problem - Question Lounge</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-4544</link>
		<dc:creator>PHP extension problem - Question Lounge</dc:creator>
		<pubDate>Sun, 06 Feb 2011 12:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-4544</guid>
		<description>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial) [...]</description>
		<content:encoded><![CDATA[<p>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP extension problem - Question Lounge</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-4545</link>
		<dc:creator>PHP extension problem - Question Lounge</dc:creator>
		<pubDate>Sun, 06 Feb 2011 12:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-4545</guid>
		<description>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial) [...]</description>
		<content:encoded><![CDATA[<p>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP extension problem &#124; DEEP in PHP</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-4506</link>
		<dc:creator>PHP extension problem &#124; DEEP in PHP</dc:creator>
		<pubDate>Sat, 05 Feb 2011 15:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-4506</guid>
		<description>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial) [...]</description>
		<content:encoded><![CDATA[<p>[...] When I try to test the function (a simple double() function) it obviously does not work. I used this tutorial) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-4503</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 05 Feb 2011 15:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-4503</guid>
		<description>I have the right php.ini (i know because when I enable and disable the gd2 extension, there&#039;s an effect) but when I load my extension it does not pop up under the Additional Modules.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I have the right php.ini (i know because when I enable and disable the gd2 extension, there&#8217;s an effect) but when I load my extension it does not pop up under the Additional Modules.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: criando extensões para PHP &#124; repositoriodemanhas</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-3221</link>
		<dc:creator>criando extensões para PHP &#124; repositoriodemanhas</dc:creator>
		<pubDate>Thu, 13 Jan 2011 19:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-3221</guid>
		<description>[...] To create a dll extension to PHP follow this instructions [...]</description>
		<content:encoded><![CDATA[<p>[...] To create a dll extension to PHP follow this instructions [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alain</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1224</link>
		<dc:creator>Alain</dc:creator>
		<pubDate>Mon, 04 Oct 2010 15:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1224</guid>
		<description>To resolve the missing main/config.w32.h, with php5.3.3 and VC++2005, I used Sean&#039;s trick under a DOS command window:
- buildconf.bat
- &quot;C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat&quot;
- cscript /nologo configure.js
after these steps, main/config.w32.h got created and I could compile the project.
Thank you Matthew and Sean. 
However I face a fastCGI bug what cannot initialize properly with my module (without: no problem). Any idea ?</description>
		<content:encoded><![CDATA[<p>To resolve the missing main/config.w32.h, with php5.3.3 and VC++2005, I used Sean&#8217;s trick under a DOS command window:<br />
- buildconf.bat<br />
- &#8220;C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat&#8221;<br />
- cscript /nologo configure.js<br />
after these steps, main/config.w32.h got created and I could compile the project.<br />
Thank you Matthew and Sean.<br />
However I face a fastCGI bug what cannot initialize properly with my module (without: no problem). Any idea ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel villalpando</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1219</link>
		<dc:creator>daniel villalpando</dc:creator>
		<pubDate>Sat, 07 Aug 2010 18:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1219</guid>
		<description>Good work, do you hace examples of zend api? i have one library where i can convert to dll extension.   thanks</description>
		<content:encoded><![CDATA[<p>Good work, do you hace examples of zend api? i have one library where i can convert to dll extension.   thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1218</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 04 Aug 2010 15:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1218</guid>
		<description>If you&#039;re having trouble building the solution because of a missing main/config.w32.h, do the following:

Open a Visual Studio command prompt, and navigate to your PHP source directory. Type &quot;buildconf.bat&quot;, and then finally &quot;cscript /nologo configure.js&quot;. After that you shouldn&#039;t have any problems building the solution.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re having trouble building the solution because of a missing main/config.w32.h, do the following:</p>
<p>Open a Visual Studio command prompt, and navigate to your PHP source directory. Type &#8220;buildconf.bat&#8221;, and then finally &#8220;cscript /nologo configure.js&#8221;. After that you shouldn&#8217;t have any problems building the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Adnan</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1217</link>
		<dc:creator>Muhammad Adnan</dc:creator>
		<pubDate>Wed, 04 Aug 2010 12:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1217</guid>
		<description>why I get this error ? and how to resolve it ?

fatal error C1083: Cannot open include file: &#039;zend_config.w32.h&#039;: No such file or directory	c:usersadnandocumentsisual studio 2005projectsmycustomextmycustomextstdafx.h</description>
		<content:encoded><![CDATA[<p>why I get this error ? and how to resolve it ?</p>
<p>fatal error C1083: Cannot open include file: &#8216;zend_config.w32.h&#8217;: No such file or directory	c:usersadnandocumentsisual studio 2005projectsmycustomextmycustomextstdafx.h</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vector.Lee</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1215</link>
		<dc:creator>Vector.Lee</dc:creator>
		<pubDate>Tue, 03 Aug 2010 09:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1215</guid>
		<description>another problem:
I created a new php-extension.
I did nothing but just write &quot;#include &quot; int the php-extension source file,the vs2008 showed me such msgs.

1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(967) : error C2491: “std::endl”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(976) : error C2491: “std::endl”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(985) : error C2491: “std::ends”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(993) : error C2491: “std::ends”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(1001) : error C2491: “std::flush”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(1009) : error C2491: “std::flush”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\istream(1068) : error C2491: “std::ws”: definition of dllimport function not allowed
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\istream(1103) : error C2491: “std::ws”: definition of dllimport function not allowed

I can use std::string in php-extension with gcc, what`s wrong with vc?</description>
		<content:encoded><![CDATA[<p>another problem:<br />
I created a new php-extension.<br />
I did nothing but just write &#8220;#include &#8221; int the php-extension source file,the vs2008 showed me such msgs.</p>
<p>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(967) : error C2491: “std::endl”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(976) : error C2491: “std::endl”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(985) : error C2491: “std::ends”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(993) : error C2491: “std::ends”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(1001) : error C2491: “std::flush”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\ostream(1009) : error C2491: “std::flush”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\istream(1068) : error C2491: “std::ws”: definition of dllimport function not allowed<br />
1&gt;c:\program files\microsoft visual studio 9.0\vc\include\istream(1103) : error C2491: “std::ws”: definition of dllimport function not allowed</p>
<p>I can use std::string in php-extension with gcc, what`s wrong with vc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vector.Lee</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1214</link>
		<dc:creator>Vector.Lee</dc:creator>
		<pubDate>Tue, 03 Aug 2010 09:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1214</guid>
		<description>Hi~
I wrote a php extension with vs2008.
I inserted breakpoint in the source file and pressed F5 to debuging the extensiong. A warning message box was jumped out.

PHP Startup:myphpext:Unable to initialize module
Module compiled with build ID=API20090626,TS,VC9
PHP compiled with build D=API20090626,TS, debug, VC9
These options need to match

It seems like that the myphpext extension is not debug version.
But I already set the properties of the project ot /Zi and /DEBUG.

What should i do?</description>
		<content:encoded><![CDATA[<p>Hi~<br />
I wrote a php extension with vs2008.<br />
I inserted breakpoint in the source file and pressed F5 to debuging the extensiong. A warning message box was jumped out.</p>
<p>PHP Startup:myphpext:Unable to initialize module<br />
Module compiled with build ID=API20090626,TS,VC9<br />
PHP compiled with build D=API20090626,TS, debug, VC9<br />
These options need to match</p>
<p>It seems like that the myphpext extension is not debug version.<br />
But I already set the properties of the project ot /Zi and /DEBUG.</p>
<p>What should i do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sneakyimp</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1213</link>
		<dc:creator>sneakyimp</dc:creator>
		<pubDate>Tue, 27 Jul 2010 22:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1213</guid>
		<description>I followed these instructions pretty much to the letter using VS 2008 Express and PHP 5.3.3.  I get the following error:
&lt;code&gt;
1&gt;------ Build started: Project: CustomExt, Configuration: Debug Win32 ------
1&gt;Compiling...
1&gt;stdafx.cpp
1&gt;F:\download\php\php-5.3.3\Zend\zend_config.w32.h(25) : fatal error C1083: Cannot open include file: &#039;../main/config.w32.h&#039;: No such file or directory
1&gt;Build log was saved at &quot;file://d:\Documents and Settings\jaith\My Documents\Visual Studio 2008\Projects\CustomExt\CustomExt\Debug\BuildLog.htm&quot;
1&gt;CustomExt - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I followed these instructions pretty much to the letter using VS 2008 Express and PHP 5.3.3.  I get the following error:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">1&gt;------ Build started: Project: CustomExt, Configuration: Debug Win32 ------<br />
1&gt;Compiling...<br />
1&gt;stdafx.cpp<br />
1&gt;F:\download\php\php-5.3.3\Zend\zend_config.w32.h(25) : fatal error C1083: Cannot open include file: '../main/config.w32.h': No such file or directory<br />
1&gt;Build log was saved at &quot;file://d:\Documents and Settings\jaith\My Documents\Visual Studio 2008\Projects\CustomExt\CustomExt\Debug\BuildLog.htm&quot;<br />
1&gt;CustomExt - 1 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: MoZart</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1208</link>
		<dc:creator>MoZart</dc:creator>
		<pubDate>Fri, 02 Jul 2010 07:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1208</guid>
		<description>Tell me please, what the DoubleUp is?
On what should i rename it?</description>
		<content:encoded><![CDATA[<p>Tell me please, what the DoubleUp is?<br />
On what should i rename it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Opisy, Statusy GG</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1206</link>
		<dc:creator>Opisy, Statusy GG</dc:creator>
		<pubDate>Wed, 23 Jun 2010 11:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1206</guid>
		<description>that was looking for, thanks</description>
		<content:encoded><![CDATA[<p>that was looking for, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1099</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sun, 09 May 2010 09:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1099</guid>
		<description>I&#039;ve created my extension with Visual Studio 2008, but when i&#039;m tring to load the extension with php and i&#039;m getting:
PHP Startup: CustomExt Module: Unable to initialize module
Module compiled with build ID=API20090626,TS,VC9
PHP compiled with build ID=API20090626,TS,VC6
The options need to match.

I&#039;m using php build with VC6 because php.net recommmands this version with apache 2.

So what should i do?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve created my extension with Visual Studio 2008, but when i&#8217;m tring to load the extension with php and i&#8217;m getting:<br />
PHP Startup: CustomExt Module: Unable to initialize module<br />
Module compiled with build ID=API20090626,TS,VC9<br />
PHP compiled with build ID=API20090626,TS,VC6<br />
The options need to match.</p>
<p>I&#8217;m using php build with VC6 because php.net recommmands this version with apache 2.</p>
<p>So what should i do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: some1</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1076</link>
		<dc:creator>some1</dc:creator>
		<pubDate>Thu, 11 Mar 2010 18:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1076</guid>
		<description>Error	1	error C3163: &#039;_vsnprintf&#039;: attributes inconsistent with previous declaration	d:\Visual Studio\VC\include\stdio.h	357	CustomExt
Warning	2	warning C4005: &#039;_WIN32_WINNT&#039; : macro redefinition	c:\server\php5src\tsrm\readdir.h	10	CustomExt



does anyone know why do i get these shit error with vs 2008 ?</description>
		<content:encoded><![CDATA[<p>Error	1	error C3163: &#8216;_vsnprintf&#8217;: attributes inconsistent with previous declaration	d:\Visual Studio\VC\include\stdio.h	357	CustomExt<br />
Warning	2	warning C4005: &#8216;_WIN32_WINNT&#8217; : macro redefinition	c:\server\php5src\tsrm\readdir.h	10	CustomExt</p>
<p>does anyone know why do i get these shit error with vs 2008 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerhard</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-2/#comment-1017</link>
		<dc:creator>Gerhard</dc:creator>
		<pubDate>Fri, 15 Jan 2010 13:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-1017</guid>
		<description>I just created an extension using Visual C++ 2008 express.
Your guide works like a charm!

I had to make just a few small adaptions:
1) 
Configuration Properties &gt; C/C++ &gt; General, in the Additional Include Directories, 
I did not have a ..../PHP5Src/regex directory in the source code (php-5.3.1),
so I left this line out. Seems to do no harm
2)
Configuration Properties &gt; C/C++ &gt; Preprocessor &gt; Precompiled Headers
I had to disable &quot;use precompiled headers&quot; 
3)
I had to remove &quot;dllmain.cpp&quot; and &quot;stdafx.cpp&quot; (automatically generated) from the project.

Thanks, it saved me days!

Gerhard</description>
		<content:encoded><![CDATA[<p>I just created an extension using Visual C++ 2008 express.<br />
Your guide works like a charm!</p>
<p>I had to make just a few small adaptions:<br />
1)<br />
Configuration Properties &gt; C/C++ &gt; General, in the Additional Include Directories,<br />
I did not have a &#8230;./PHP5Src/regex directory in the source code (php-5.3.1),<br />
so I left this line out. Seems to do no harm<br />
2)<br />
Configuration Properties &gt; C/C++ &gt; Preprocessor &gt; Precompiled Headers<br />
I had to disable &#8220;use precompiled headers&#8221;<br />
3)<br />
I had to remove &#8220;dllmain.cpp&#8221; and &#8220;stdafx.cpp&#8221; (automatically generated) from the project.</p>
<p>Thanks, it saved me days!</p>
<p>Gerhard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oka</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-1/#comment-930</link>
		<dc:creator>oka</dc:creator>
		<pubDate>Tue, 08 Dec 2009 08:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-930</guid>
		<description>I solve the previous error. Now i face new problem

How to solve the following errors

1&gt;dllmain.obj : error LNK2005: _asinl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _atanl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _atan2l already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _ceill already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _cosl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _coshl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _expl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _fabsl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _floorl already defined in CustomExt.obj
1&gt;dllmain.obj : error LNK2005: _fmodl already defined in CustomExt.obj</description>
		<content:encoded><![CDATA[<p>I solve the previous error. Now i face new problem</p>
<p>How to solve the following errors</p>
<p>1&gt;dllmain.obj : error LNK2005: _asinl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _atanl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _atan2l already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _ceill already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _cosl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _coshl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _expl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _fabsl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _floorl already defined in CustomExt.obj<br />
1&gt;dllmain.obj : error LNK2005: _fmodl already defined in CustomExt.obj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oka</title>
		<link>http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/comment-page-1/#comment-928</link>
		<dc:creator>oka</dc:creator>
		<pubDate>Tue, 08 Dec 2009 07:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=128#comment-928</guid>
		<description>C:\Server\PHPSRC\Zend\zend_config.w32.h(25) : fatal error C1083: Cannot open include file: &#039;../main/config.w32.h&#039;: No such file or directory.3.1

How to solve it?

(i using php-5.3.1)</description>
		<content:encoded><![CDATA[<p>C:\Server\PHPSRC\Zend\zend_config.w32.h(25) : fatal error C1083: Cannot open include file: &#8216;../main/config.w32.h&#8217;: No such file or directory.3.1</p>
<p>How to solve it?</p>
<p>(i using php-5.3.1)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

