[getdns-users] SWIG, PHP, and Undefined Functions

Hollenbeck, Scott shollenbeck at verisign.com
Mon Feb 2 14:09:22 CET 2015


> -----Original Message-----
> From: Users [mailto:users-bounces at getdnsapi.net] On Behalf Of Willem
> Toorop
> Sent: Monday, February 02, 2015 8:04 AM
> To: users at getdnsapi.net
> Subject: Re: [getdns-users] SWIG, PHP, and Undefined Functions
> 
> Hi Scott,
> 
> Exactly repeating your steps works with me:

[snip]

> Maybe it mattered that I had /usr/local/lib in my LD_LIBRARY_PATH
> though.

Strange, so do I:

$ echo $LD_LIBRARY_PATH
/usr/local/lib
$

Still, your result suggests an environment issue on my side. That's helpful - thanks.

> But this very direct approach doesn't give me an usable php interface
> yet.  I guess you have to work around the pass by reference style of
> returning values (besides the return code).
> 
> php > $c = NULL;
> php > $r = getdns_context_create($c,1);
> php > print "$r\n";
> 
> (i.e. 311 == GETDNS_RETURN_INVALID_PARAMETER)
> 
> php > $r = getdns_context_create(&$c,1);
> PHP Fatal error:  Call-time pass-by-reference has been removed in php
> shell code on line 1

I hope to deal with those issues when I get there... ;)

Scott



More information about the Users mailing list