PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > PHP ssh2 problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP ssh2 problem

Réponse
 
LinkBack Outils de la discussion
Vieux 07/04/2008, 15h16   #1
Michael Stroh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP ssh2 problem

Hello, I have run into a problem when trying to get the ssh2 bindings to
run on PHP. I have successfully installed libssh2 and have gotten version
0.11 of ssh2 to compile correctly using the patch obtained through the
'package bugs' page. However, when I load php, I get the following error:

dyld: NSLinkModule() error
dyld: Symbol not found: _zval_used_for_init
Referenced from: /private/etc/php_modules/ssh2.so
Expected in: flat namespace

Trace/BPT trap

I'm kind of a php novice so any advice you could give me would be greatly
appreciated. I'm running PHP v5.2.5 on Mac OS 10.5.2 and am more than
willing to provide you with any other details.

Cheers,
Michael Stroh

  Réponse avec citation
Vieux 07/04/2008, 15h21   #2
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP ssh2 problem

On Mon, Apr 7, 2008 at 10:16 AM, Michael Stroh <stroh@astroh.org> wrote:
> Hello, I have run into a problem when trying to get the ssh2 bindings to
> run on PHP. I have successfully installed libssh2 and have gotten version
> 0.11 of ssh2 to compile correctly using the patch obtained through the
> 'package bugs' page. However, when I load php, I get the following error:
>
> dyld: NSLinkModule() error
> dyld: Symbol not found: _zval_used_for_init
> Referenced from: /private/etc/php_modules/ssh2.so
> Expected in: flat namespace


Re-run ./configure for libssh2 and see if there are any errors
there. The missing symbol in the compiled .so file
(_zval_used_for_init) I believe refers to Zend Optimizer, so you may
just need to reinstall that (and maybe a newer version).

--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!
  Réponse avec citation
Vieux 07/04/2008, 16h25   #3
Michael Stroh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP ssh2 problem

Thanks for your advice Daniel.

I installed the new version of Zend Optimizer but then received the
following error:

dyld: NSLinkModule() error
dyld: Symbol not found: _zend_extensions
Referenced from: /usr/local/Zend/lib/ZendExtensionManager.so
Expected in: flat namespace

Trace/BPT trap

I checked the Zend forums and it is believed that they will not support
Mac OS 10.5 and thus the error. Is there another package I can use to
replace Zend for the purpose of ssh2?

Cheers,
Michael



On Mon, April 7, 2008 10:21 am, Daniel Brown wrote:
> On Mon, Apr 7, 2008 at 10:16 AM, Michael Stroh <stroh@astroh.org> wrote:
>> Hello, I have run into a problem when trying to get the ssh2 bindings to
>> run on PHP. I have successfully installed libssh2 and have gotten
>> version
>> 0.11 of ssh2 to compile correctly using the patch obtained through the
>> 'package bugs' page. However, when I load php, I get the following
>> error:
>>
>> dyld: NSLinkModule() error
>> dyld: Symbol not found: _zval_used_for_init
>> Referenced from: /private/etc/php_modules/ssh2.so
>> Expected in: flat namespace

>
> Re-run ./configure for libssh2 and see if there are any errors
> there. The missing symbol in the compiled .so file
> (_zval_used_for_init) I believe refers to Zend Optimizer, so you may
> just need to reinstall that (and maybe a newer version).
>
> --
> </Daniel P. Brown>
> Ask me about:
> Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
> and shared hosting starting @ $2.50/mo.
> Unmanaged, managed, and fully-managed!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



  Réponse avec citation
Vieux 07/04/2008, 16h29   #4
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP ssh2 problem

On Mon, Apr 7, 2008 at 11:25 AM, Michael Stroh <stroh@astroh.org> wrote:
> Thanks for your advice Daniel.
>
>
> I checked the Zend forums and it is believed that they will not support
> Mac OS 10.5 and thus the error. Is there another package I can use to
> replace Zend for the purpose of ssh2?


If you're using it for Zend Encoder-encoded files, the answer is
no. If you just have it installed because it seems like a good idea,
then your best bet would be to comment-out the [Zend] section of your
php.ini and restart your HTTP server (Apache?) so that the changes
take effect. Then try the SSH code again.

--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!
  Réponse avec citation
Vieux 07/04/2008, 17h59   #5
Michael Stroh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP ssh2 problem

Thanks so much! That seems to have done the trick. I commented out those
files in my php.ini file and then a reinstallation of ssh2 worked. Zend
must have been installed by some default setting.

Thanks again for your Daniel!

Cheers,
Michael



On Mon, April 7, 2008 11:29 am, Daniel Brown wrote:
> On Mon, Apr 7, 2008 at 11:25 AM, Michael Stroh <stroh@astroh.org> wrote:
>> Thanks for your advice Daniel.
>>
>>
>> I checked the Zend forums and it is believed that they will not support
>> Mac OS 10.5 and thus the error. Is there another package I can use to
>> replace Zend for the purpose of ssh2?

>
> If you're using it for Zend Encoder-encoded files, the answer is
> no. If you just have it installed because it seems like a good idea,
> then your best bet would be to comment-out the [Zend] section of your
> php.ini and restart your HTTP server (Apache?) so that the changes
> take effect. Then try the SSH code again.
>
> --
> </Daniel P. Brown>
> Ask me about:
> Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
> and shared hosting starting @ $2.50/mo.
> Unmanaged, managed, and fully-managed!
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17190 seconds with 13 queries