DEVSENSE / Phalanger

PHP 5.4 compiler for .NET/Mono frameworks. Predecessor to the opensource PeachPie project (www.peachpie.io).
http://v4.php-compiler.net/
Apache License 2.0
382 stars 94 forks source link

@ftp_connect causes 'PHP.Core.PhpException' in PhpNetCore.dll #80

Open luminalpark opened 7 years ago

luminalpark commented 7 years ago

Hi,

maybe it's my system, but when I try to execute a ftp connection command (@ftp_connect), PhpNetCore raises an exception ('PHP.Core.PhpException' in PhpNetCore.dll). Surrounding the code with a try catch gives me details on the exception:

{"Call to undefined function: 'ftp_connect'"} PHP.Core.PhpException

$host = 'ftp.mozilla.org'; $port =21; $timeout=900;

@ftp_connect($host, $port, $timeout);

Can you help me out? It seems that ftp_connect is not yet implemented

bfistein commented 5 years ago

@luminalpark Phalanger's development is mostly discontinued in favor of PeachPie, the more modern compiler and runtime that also targets .NET Core. Please feel free to give that a try.

Note: ftp_connect isn't implemented yet either, but wouldn't be hard to do.