Re: php.ini problem to load Dynamically libraries
| From: | Frederic Logier | Date: | Fri, 26 May 2000 16:24:34 +0000 |
| Subject: | Re: php.ini problem to load Dynamically libraries | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19520@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote:
>
> That's not a change since RC1, but make sure you have no whitespace (spaces
> or tabs) in your extension=foo line. You also have to rebuild your
> extensions, RC1 extensions won't work.
>
> Zeev
>
> At 01:32 24/05/2000 , Frederic Logier wrote:
> >Hi,
> >I'm attempting to load a Dynamically Loadable Libraries with php.ini.
> >
> >i use :
> >
> >extension_dir = /usr/local/lib/
> >extension= foo.so
> >
> >No probleme with php-4.0RC1, my librarie is load.
> >
> >with php-4.0.0 not.
> >
> >if i use dl("foo.so") it's good but i don't want to change all my php
> >files.
> >
> >What about it ?
> >
> >Cheers
> >
> >
> >
> >--
> >________________________________________________
> >Frédéric LOGIER fl@accelance.fr
> >ACCELANCE, Solutions Communicantes.
> >www.accelance.fr
> >97, rue Racine - 69100 Villeurbanne
> >Tel: +33 (0)4 37 43 12 22 / Fax: +33 (0)4 37 43 12 20
> >________________________________________________
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-dev-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Zeev Suraski <zeev@zend.com> http://www.zend.com/
I tried too with no whitespace (spaces or tabs) like you told me.
extension_dir=/usr/local/lib
or
extension_dir=/usr/local/lib/
or
extension_dir = /usr/local/lib
...
but nothing, my foo.so doesn't load.
Finally, when i specify all PATH in extension label, it's ok :
extension=/usr/local/lib/accelib.so
I think that 'extension_dir' label doesn't work with php4.0 final (no
prob with RC1).
ps :
When i call my function who return parameters, i see this message in
error_log for each parameters return :
---------------------------------------
zend_execute_API.c(237) : Block 0x080DD88C status:
zend_variables.c(62) : Actual location (location was relayed)
Beginning: Overrun (magic=0x612F6E65, expected=0x7312F8DC)
End: Unknown
---------------------------------------
is it a memory leak ?
$result = function1($chaine,&$ret1,&$ret2);
in my function .c, return values is :
(*ret1)->value.lval = num_codeid;
(*ret2)->value.str.val = passwd;
(*ret2)->type = IS_STRING;
(*ret2)->value.str.len = strlen((*ret2)->value.str.val);
What about it ?
Cheers
--
________________________________________________
Frédéric LOGIER fl@accelance.fr
ACCELANCE, Solutions Communicantes.
www.accelance.fr
97, rue Racine - 69100 Villeurbanne
Tel: +33 (0)4 37 43 12 22 / Fax: +33 (0)4 37 43 12 20
________________________________________________