Bug #74762 [Opn->Fbk]: ftp_connect makes php break with RID error
| From: | requinix@php.net | Date: | Thu, 15 Jun 2017 05:45:55 +0000 |
| Subject: | Bug #74762 [Opn->Fbk]: ftp_connect makes php break with RID error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209543@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74762&edit=1
ID: 74762
Updated by: requinix@php.net
Reported by: jmichae35 at gmail dot com
Summary: ftp_connect makes php break with RID error
-Status: Open
+Status: Feedback
Type: Bug
Package: FTP related
Operating System: windows 7 x64
PHP Version: 7.1.6
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
This does not sound like a PHP bug. Make sure your code is syntactically valid.
Previous Comments:
------------------------------------------------------------------------
[2017-06-15 03:03:32] jmichae35 at gmail dot com
Description:
------------
PHP Parse error: syntax error, unexpected 'RID' (T_STRING), expecting ',' or
';' in T:\w2\jtr\ftp7a.php on line 361
Test script:
---------------
$conn_id = ftp_connect($host,$port) or die("ERROR: ftp_connect() could not get FTP connection!
\r\n");
Expected result:
----------------
a valid connection. I even tried lowercasing the domain (which should not be necessary). domains are
to be case insensitive according to the RFC.
Actual result:
--------------
PHP Parse error: syntax error, unexpected 'RID' (T_STRING), expecting ',' or
';' in T:\w2\jtr\ftp7a.php on line 361
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74762&edit=1