Topic
  • 5 replies
  • Latest Post - ‏2010-04-24T03:10:53Z by SystemAdmin
SystemAdmin
SystemAdmin
9224 Posts

Pinned topic "Unable to load dynamic library error" when php startup

‏2010-04-16T11:12:49Z |
NOTE: this thread was migrated from projectzero.org. Some content and formatting may have been lost in the move.


Originally posted by projectzero userid: violalu - f=4&t=2092#p8550
Hello, i try to run a php application on sMash latest monza: zero_1.1.1.3.31204.zip, but when access the app, it always reported error like
PHP Startup: Unable to load dynamic library '\zero.php.ACFExtension.dll' - The specified module could not be found.

I already add zero.php, so p8.lib and zero.p8 are in the classpath and native path. From php.ini, there are some projectzero specific extension like
extension = zero.php.ACFExtension
extension = zero.data.php.QueryExtension
extension = zero.php.XMLExtension
extension = zero.php.ConnectionExtension
but from log trace, some modules cann't be found. The most strangest thing is that "Unable to load dynamic library '\php_xml.dll'" but from p8.lib lib/x86/windows folder, those do exist.
I attached my ivy.xml, and log trace.

Can somebody help? thanks in advance.
Updated on 2010-04-24T03:10:53Z at 2010-04-24T03:10:53Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    9224 Posts

    Re: "Unable to load dynamic library error" when php startup

    ‏2010-04-16T11:58:36Z  

    Originally posted by projectzero userid: kelseyd - f=4&t=2092#p8551
    It looks like the ACFExtension library is not in the classpath. so P8 failed to load the extension so tries to load it as a native library and doesn't find that either (as expected)

    what I see from the trace shows me that php_xml.dll was found and loaded. The message you see is because it searches based on the java.library.path order so won't find it in some paths but eventually does.
    
    <br/> 17-Apr-2010 02:37:59 : PHP            (PHP/DBG  ) : 11     : SCRIPT_WARNING: PHP Startup: Unable to load dynamic library 
    '\php_xml.dll' - The specified module could not be found.<br/> <br/> 17-Apr-2010 02:37:59 : PHP            (PHP/DBG  ) : 11     : SCRIPT_WARNING: PHP Startup: Unable to load dynamic library 
    'E:\\zero\\zero-repository\\stable\\expanded\\zero\\zero.management.native.process-1.1.1.3.30955\\lib\\x86\\windows\php_xml.dll' - The specified module could not be found.<br/> <br/> 17-Apr-2010 02:37:59 : PHP            (PHP/DBG  ) : 11     : SCRIPT_WARNING: PHP Startup: Unable to load dynamic library 
    'E:\\zero\\zero-repository\\stable\\expanded\\zero\\zero.management.spi-1.1.1.3.29370\\lib\\x86\\windows\php_xml.dll' - The specified module could not be found.<br/> <br/> 17-Apr-2010 02:37:59 : PHP            (PHP/DBG  ) : 11     : SCRIPT_WARNING: PHP Startup: Unable to load dynamic library 
    'E:\\zero\\zero-repository\\stable\\expanded\\zero\\zero.management.zso-1.1.1.3.30778\\lib\\x86\\windows\php_xml.dll' - The specified module could not be found.<br/> <br/> 17-Apr-2010 02:37:59 : PHP            (PHP/DBG  ) : 11     : SCRIPT_WARNING: PHP Startup: Unable to load dynamic library 
    'E:\\zero\\zero-repository\\stable\\expanded\\zero\\zero.management.monitor-1.1.1.3.28430\\lib\\x86\\windows\php_xml.dll' - The specified module could not be found.<br/> <br/> 17-Apr-2010 02:37:59 : XAPI           (3512     ) : 11     : INFO        : XAPIC Extension php_xml.dll successfully loaded. <br/>
    


    You are probably getting the PHP Started: messages because you have display_startup_errors = on in your php.ini.

    is ACFExtension the only one reported as something like Unable to load dynamic library '\zero.php.ACFExtension.dll ? it should find it in the class path and not attempt to look for a native library of that name.

    Dave Kelsey
  • SystemAdmin
    SystemAdmin
    9224 Posts

    Re: "Unable to load dynamic library error" when php startup

    ‏2010-04-23T12:35:00Z  

    Originally posted by projectzero userid: violalu - f=4&t=2092#p8580
    Thanks, i didn't enable display_startup_errors. From the trace, i find that my errors is cozed by foreach :
    foreach ($source->children() as $child=>$a) {
    $this->extendChild($child, $overwrite);
    }

    when iterating over objects like:
    object(Mage_Core_Model_Config_Element)#24 (1) { => object(Mage_Core_Model_Config_Element)#25 (49) { => object(Mage_Core_Model_Config_Element)#26 (2) { => string(4) "true" => string(4) "core" }
    when parsing xml files using SimpleXMLElement
    errors ouput:
    Caused by: java.lang.NullPointerException
    at com.ibm.p8.library.standard.xapic.XAPICLibrary.getIteratorRouter(XAPICLibrary.java:1863)
    at com.ibm.p8.library.standard.xapic.XAPICIteratorProxy.<init>(XAPICIteratorProxy.java:38)
    at com.ibm.p8.library.standard.xapic.XAPICClass.onIteratorRequested(XAPICClass.java:743)
    at com.ibm.p8.engine.xapi.reflection.impl.XAPIClassEventHandler.onIteratorRequested(XAPIClassEventHandler.java:163)
    at com.ibm.p8.engine.core.object.PHPClass.getObjectIterator(PHPClass.java:2127)
    at com.ibm.p8.engine.opcode.ForEachIterator.init(ForEachIterator.java:101)
    at com.ibm.p8.engine.opcode.Op.utFE_INIT(Op.java:5128)
    at com.ibm.p8.engine.opcode.Op.jhFE_INIT(Op.java:5096)
    at com.ibm.p8.engine.opcode.Op.jhFE_INIT(Op.java:5112)
  • SystemAdmin
    SystemAdmin
    9224 Posts

    Re: "Unable to load dynamic library error" when php startup

    ‏2010-04-23T14:49:26Z  

    Originally posted by projectzero userid: kelseyd - f=4&t=2092#p8583
    That looks like a possible bug. Can you post some example code that re-creates the problem ?
  • SystemAdmin
    SystemAdmin
    9224 Posts

    Re: "Unable to load dynamic library error" when php startup

    ‏2010-04-23T17:19:32Z  

    Originally posted by projectzero userid: hayton - f=4&t=2092#p8584
    Hi Viola,
    The ACF library is in a separate module so you need to add a dependency to your ivy.xml.
    Something like
    <dependency org="zero" name="zero&#46;php&#46;acf" rev="&#91;1&#46;0&#46;0&#46;0, 2&#46;0&#46;0&#46;0&#91;"/>
    

    re resolve the project then the extension and library should be found.
    Rgeards,
    Stuart.
    Updated on 2014-03-25T05:47:49Z at 2014-03-25T05:47:49Z by iron-man
  • SystemAdmin
    SystemAdmin
    9224 Posts

    Re: "Unable to load dynamic library error" when php startup

    ‏2010-04-24T03:10:53Z  

    Originally posted by projectzero userid: violalu - f=4&t=2092#p8585
    Thanks, Hayton, I already did that to avoid ACF error. And i think i 'd better close this thread and start another avoiding confusion.
    Thanks all.