phpMorphy integration

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

Re: phpMorphy integration

Postby udi » February 10th, 2012, 9:53 pm

You made my day, really.
Thank you.
udi
 
Posts: 9
Joined: February 9th, 2012, 10:49 am

Re: phpMorphy integration

Postby udi » February 10th, 2012, 10:53 pm

It's me again :)

I'm tryed to deploy my solution to Windows XP SP3 and to Windows 7 Ultimate with all installed .NET Frameworks and Visual C++ 2010 Redistributable

Image

Here is my Phalanger2.exe.config sections:

Code: Select all
<configSections>
      <section name="phpNet" type="PHP.Core.ConfigurationSectionHandler, PhpNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71" />
   </configSections>
...
<phpNet>
   <scriptLibrary>
      <add url='phpmorphy.dll' />
   </scriptLibrary>
   <classLibrary>
      <add assembly="PhpNetClassLibrary, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb" section="bcl" />
      <add assembly="php_mbstring.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="mbstring" />
   </classLibrary>
</phpNet>


Files that I'm deploying

Image

On Windows 7 with installed Phalanger (my work machine) it works properly, but on another machines it didn't do anything - no errors, no results.

Maybe I need another files to deploy? I don't want to install Phalanger to user computers.
udi
 
Posts: 9
Joined: February 9th, 2012, 10:49 am

Re: phpMorphy integration

Postby Jakub Misek » February 13th, 2012, 4:11 pm

It can't just do nothing :) Is it possible, your work machine has 32bit Windows, and the other one is 64bit?

It would help, if you add some exception handling or another debug handling, what it actually does.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: phpMorphy integration

Postby udi » February 13th, 2012, 4:57 pm

My work machine has x64 windows, but I develop this application for x86 CPU...
What I can to do with it? I need good universal solution for both versions of Windows :?
udi
 
Posts: 9
Joined: February 9th, 2012, 10:49 am

Re: phpMorphy integration

Postby Jakub Misek » February 13th, 2012, 5:15 pm

Sadly, Windows PHP extensions (php_mbstring.dll) are compiled for x86 only. You can use managed extensions which are machine-independent (http://www.devsense.com/services/phalanger) or after compiling your EXE, mark it to force x86 execution using corflags tool)
Code: Select all
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\corflags.exe" /32BIT+ myprogram.exe
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: phpMorphy integration

Postby udi » February 17th, 2012, 6:53 pm

It was a problem with php_mbstring extension, you're was right. I made new script without php_mbstring extension and it works perfect on the all my computers and Windows versions.
Thanks for your help!
udi
 
Posts: 9
Joined: February 9th, 2012, 10:49 am

Previous

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 16 guests

User Control Panel

Login

Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 787 on May 12th, 2024, 11:50 am

Users browsing this forum: No registered users and 16 guests