Opened 10 years ago

Closed 10 years ago

#44383 closed defect (invalid)

Install of php5-ftp seems incomplete

Reported by: JAyenGreen (Jeff Greenberg) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: php5-ftp

Description

I did a port install of php5-ftp. The install ran cleanly, but phpinfo doesn't show an ftp section, php.ini shows no ftp entries, and when I try running a local version of a script I have running on a server (with working ftp), I get the following error:

Fatal error: Call to undefined function ftp_connect()

I then noticed I was on an old version of macports (2.1.2), so I did a self-update and then updated the ports. Following is the output of the php5-ftp install, which was again clean, and still resulted in the error, above.

--->  Cleaning php5
--->  Computing dependencies for php5-ftp
--->  Fetching archive for php5-ftp
--->  Attempting to fetch php5-ftp-5.3.28_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/php5-ftp
--->  Attempting to fetch php5-ftp-5.3.28_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/php5-ftp
--->  Attempting to fetch php5-ftp-5.3.28_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php5-ftp
--->  Fetching distfiles for php5-ftp
--->  Verifying checksums for php5-ftp
--->  Extracting php5-ftp
--->  Configuring php5-ftp
--->  Building php5-ftp
--->  Staging php5-ftp into destroot
--->  Installing php5-ftp @5.3.28_0
--->  Cleaning php5-ftp
--->  Computing dependencies for php5-ftp
--->  Deactivating php5-ftp @5.3.27_0
--->  Cleaning php5-ftp
--->  Activating php5-ftp @5.3.28_0
--->  Cleaning php5-ftp

Attachments (1)

phpinfo.html (72.1 KB) - added by JAyenGreen (Jeff Greenberg) 10 years ago.
phpinfo() output in html format

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…

It should work, however ports whose names begin with php5- are deprecated; please use the corresponding php53-, php54-, php55- or php56- port for the version of PHP you want. Let me know if it has the same problem.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

php5-ftp does work for me—at least, the ftp_connect function is defined for me:

$ php -r 'echo (int)function_exists("ftp_connect")."\n";'
1

comment:3 in reply to:  2 Changed 10 years ago by JAyenGreen (Jeff Greenberg)

Replying to ryandesign@…:

php5-ftp does work for me—at least, the ftp_connect function is defined for me:

$ php -r 'echo (int)function_exists("ftp_connect")."\n";'
1

I'm very confused now. When I do the above, I get the same result, that the function exists. When I hit the page with my browser, I get the error. I've verified that

which php

points to /opt/local/bin/php, and that phpinfo() run from the site this page is part of returns the same location. In the phpinfo() return, ftp is mentioned in two places: Registered PHP Streams, and Loaded Modules (mod_proxy_ftp ). Is there anything else I should look at before tossing in the towel and uninstalling it in favor of the php53- version (I noticed that all of my php ports are php5 and not php53-) ?

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Could you save your phpinfo page as html and attach it here? I'll see if I can see what's wrong.

Changed 10 years ago by JAyenGreen (Jeff Greenberg)

Attachment: phpinfo.html added

phpinfo() output in html format

comment:5 in reply to:  4 Changed 10 years ago by JAyenGreen (Jeff Greenberg)

Replying to ryandesign@…:

Could you save your phpinfo page as html and attach it here? I'll see if I can see what's wrong.

Done, thanks!

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Just to check: have you restarted apache since installing php5-ftp?

comment:7 in reply to:  6 Changed 10 years ago by JAyenGreen (Jeff Greenberg)

Replying to ryandesign@…:

Just to check: have you restarted apache since installing php5-ftp?

*forehead slap* I did, but apparently I did a

sudo apachectl restart

instead of

sudo ./apachectl restart

which caused the OSX apache to start instead of the ports one. It's fine now. I'm sorry for that! Thanks so much for the help.

Last edited 10 years ago by JAyenGreen (Jeff Greenberg) (previous) (diff)

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Very good!

Note: See TracTickets for help on using tickets.