Deploying with pure dll

Discussion about the open-source Phalanger [?] project.

Re: Deploying with pure dll

Postby strfrank » June 25th, 2012, 4:00 pm

Ok, I finally got it!
For the record here's my .config, finaly working as expected:

Code: Select all
<configuration>
  <configSections>
    <section name="phpNet" type="PHP.Core.ConfigurationSectionHandler, PhpNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71" />
  </configSections>

  <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="php/Bin;php/Wrappers" />
    </assemblyBinding>
  </runtime>
 
  <phpNet>
    <paths>
      <set name="DynamicWrappers" value="php\Dynamic" />
      <!--<set name="Libraries" value="php\Bin" />-->
      <!--<set name="ExtWrappers" value="php\Wrappers" />-->
      <!--<set name="ExtTypeDefs" value="php\TypeDefs" />-->
      <set name="ExtNatives" value="php\Extensions" />
    </paths>
    <classLibrary>
      <add assembly="PhpNetClassLibrary, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb" section="bcl" />
      <add assembly="PhpNetXmlDom, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2771987119c16a03" section="dom"/>
      <add assembly="php_bcmath.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="bcmath" />
      <add assembly="php_curl.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="curl" />
      <add assembly="php_gd2.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="gd2" />
      <add assembly="php_image.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="image" />
      <add assembly="php_mbstring.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="mbstring" />
      <add assembly="php_mcrypt.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="mcrypt" />
      <add assembly="php_openssl.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="openssl" />
      <add assembly="php_xml.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="xml" />
      <add assembly="php_zlib.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="zlib" />
    </classLibrary>
  </phpNet>
</configuration>



Many many thanks for your patience Jakub!
Last edited by strfrank on June 25th, 2012, 4:59 pm, edited 1 time in total.
strfrank
 
Posts: 20
Joined: May 30th, 2012, 5:05 pm

Re: Deploying with pure dll

Postby Jakub Misek » June 25th, 2012, 4:28 pm

Great! I'm glad it works.

btw I think PhpNetCore is not needed as a <ClassLibrary>. <ClassLibrary> section only specifies assemblies with functions/constants/classes you would like to be able to use from within PHP code.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Previous

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 19 guests

cron

User Control Panel

Login

Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 5 minutes)
Most users ever online was 330 on April 19th, 2024, 1:35 am

Users browsing this forum: No registered users and 19 guests