Page 1 of 1

PHP 7.0.1 ftp support?

PostPosted: 05. January 2016 17:11
by dipfreez
Hello,

I get this error with XAMPP 7.0.1 on Windows 10:

"Fatal error: Uncaught Error: Call to undefined function ftp_connect() in ..."

When I used older versions of php/XAMPP, there was this line in phpinfo(): "FTP support enabled". Now that line is missing.

Any suggestions?
Thanks!

Re: PHP 7.0.1 ftp support?

PostPosted: 05. January 2016 17:56
by Nobbie
Send a bug report to Bitnami.

Re: PHP 7.0.1 ftp support?

PostPosted: 06. January 2016 09:28
by dipfreez
I had the impressions Bitnami offers the addons (which I'm not using). And for XAMPP I can't find a place to submit bug reports, except this forum.

Can someone please confirm this is a bug with XAMPP 7.0.1 and not something with my setup? The following script is enough to throw the fatal error:

<?php
ftp_connect('test');
?>

Re: PHP 7.0.1 ftp support?

PostPosted: 06. January 2016 10:44
by Nobbie
Due to the PHP Documentation, PHP Functions are either builtin or not present:

In order to use FTP functions with your PHP configuration, you should add the --enable-ftp option when installing PHP.

The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions.


from http://php.net/manual/en/ftp.installation.php

So you cannot setup something wrong, as there is no user setup required.

Re: PHP 7.0.1 ftp support?

PostPosted: 08. January 2016 19:19
by Altrea
Hi,

The FTP extension is already included into PHP but not loaded.

please add the following line to your php.ini at line ~995:
Code: Select all
extension=php_ftp.dll

Save the file and restart Apache.

Best wishes,
Altrea

Re: PHP 7.0.1 ftp support?

PostPosted: 09. January 2016 09:03
by dipfreez
Thank you very much, it works!