From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) Description of problem: The PHP is compiled with option --with-php which is used for versions 3.x.x of PHP and should be --enable-ftp for versions 4.x.x Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Try ftp_connect() Actual Results: Call to undefined function: ftp_connect() Expected Results: connection to some ftp services Additional info:
*scratch*... From the spec file for 4.1.2-7.0.4 (current errata) there is no --with-php as you'll see, the configuire is called as --with-ftp. I don't understand how your php install is built with --with-php at all because it's just plain not referanced. I looked at this on 7.0,1,2,3 which all have more or les the same configure options. ftp_connect is not recognised on 7.0 or 7.1 but is on 7.2 and 7.3 Phil =--= %configure \ --prefix=%{_prefix} \ --with-config-file-path=%{_sysconfdir} \ --enable-force-cgi-redirect \ --disable-debug \ --enable-pic \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-db3 \ --with-exec-dir=%{_bindir} \ --with-png-dir=%{_prefix} \ --with-gd \ --enable-gd-native-ttf \ --with-ttf \ --with-gdbm \ --with-gettext \ --with-ncurses \ --with-gmp \ --with-iconv \ --with-jpeg-dir=%{_prefix} \ --with-openssl \ --with-png \ --with-pspell \ --with-regex=system \ --with-ftp \ --with-zlib \ --with-layout=GNU \ --enable-bcmath \ --enable-debugger \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-discard-path \ --enable-track-vars \ --enable-trans-sid \ --enable-yp \ --enable-wddx \ --without-oci8 \ --with-imap=shared \ --with-imap-ssl \ --with-kerberos=/usr/kerberos \ --with-ldap=shared \ --with-mysql=shared,%{_prefix} \ --with-xml \ %if %{oracle} --with-oci8=shared \ %endif --with-pgsql=shared \ --with-snmp=shared,%{_prefix} \ --with-snmp=shared \ --enable-ucd-snmp-hack \ --with-unixODBC=shared \ --enable-memory-limit \ --enable-bcmath \ --enable-shmop \ --enable-versioning \ --enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mbstring \ --enable-mbstr-enc-trans \ $*
Sorry, of cource there is --with-ftp but this option is incorect.
aye,.. I've been informed that it's supposed to be --enable-ftp not --with-ftp [root@alpha SPECS]# grep "\-ftp" php* php-4.1.2-7.0.4.spec: --with-ftp \ php-4.1.2-7.1.4.spec: --with-ftp \ php-4.1.2-7.2.4.spec: --enable-ftp \ php-4.1.2-7.3.4.spec: --enable-ftp \ guess which ones work and which ones don't. I'll just go over into a corner here and hide... new errata being made. Appologies Phil =--=
*** Bug 72971 has been marked as a duplicate of this bug. ***
php-4.1.2-7.0.5 and php-4.1.2-7.1.5 built... no idea where they'll be available from as yet.
*** Bug 73489 has been marked as a duplicate of this bug. ***
Leaving this open whilst an errata is still pending.
*** Bug 74542 has been marked as a duplicate of this bug. ***
The same problem is in new nersion php-4.1.2-7.0.6 :-)
I've added a comment to 74557 saying it's a DUPLICATE of this bug, but I cannot change it's status as I am a lowly mortal ;) I note this bug has been outstanding for some time, and is _still_ present in even recent patches. Just to re-iterate, the obsolete --with-ftp needs to be replaced by --enable-ftp and whilst this has been done in, for example, php-4.1.2-7.3.6, it still has NOT been fixed in php-4.1.2-7.1.6 despite the two being related, huh? Moreover, the mysql.so extension was missed in the php.ini file, I think - what else is wrong with the php-4.1.2-7.1.6 build? Still, the main thing is getting the compile-time issue fixed so those of us using 7.1 rather than 7.3 can utilise the built-in FTP functionality. It's become a bit critical for one of our customers in particular, so any urgency with a fix would be greatly apprciated. Whatever happens, I am _hoping_ that the it slips no further into the future than the next scheduled patch/release - perhaps someone can nudge the priority up to HIGH please? :) Thanks folks.
*STILL* broken in php-4.1.2-7.1.6 yeah, this is a major annoying bug for us too. have a production server colocated at a remote site running 7.1 that would be difficult to reinstall to a newer RH version. installed a bunch of security updates, and php4.1.2 came along for the ride, and BLAM, ftp_connect() stopped working. I spent several hours figuring out why, identified the --with-ftp vs --enable-ftp thing, built my own 4.1.2 from SRPMS (UGH!), and installed it, but am dreading the next round of up2date fixes which will possibly revert to the broken PHP4....
Thanks for the reports. Since this bug is fixed in current releases and 7.1 is no longer supported, closing this bug now. Please reopen against a current release if the bug recurs.
*** Bug 74557 has been marked as a duplicate of this bug. ***