ID:               39883
 Updated by:       [EMAIL PROTECTED]
 Reported By:      youza at post dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: Fedora Core 4
 PHP Version:      4.4.4
 New Comment:

I don't get it either.
If there is no way to reproduce it NOT on your server, then I'd suspect
that the problem is somewhere else on your server and not in PHP.


Previous Comments:
------------------------------------------------------------------------

[2007-01-08 10:26:55] youza at post dot cz

No, the PHP CLI command is ok and file is transferred.
I use  the  ftp_nb_get - this function ok (no problem).
What's the difference between  ftp_get and ftp_nb_get in the
source code ? 

Hmm,  our server is very mass hosting system - the number of
virtual servers is cca  1800 (not all very active). The config contains
: ( example for one virtual)

<VirtualHost 111.111.111.111>
DocumentRoot /path/to/home/
ServerName www.xxxxxxx.xx
TransferLog /var/log/httpd/XXX/home/access
php_admin_value include_path   .:/path/to/home/
php_admin_value doc_root       /path/to/home/
php_admin_value open_basedir   /path/to/home/
</VirtualHost>

i reduce the number of virtulas to 950 and  ftp_get work
ok ( 20 times test).

The next tests is very interesting !!!!
1. Virtual hosts  1205 - error ( segmentation fault)

2. Virtual hosts  1204 - different error - www page in the Firefox show
error and the same error messages were saved to  file name "0"  -  zero
!!! FTP file not transferred.
-rw-rw-r--  1 apache webuser  445 Jan  8 10:06 0

The "0" file contains:
[08-Jan-2007 10:00:17] PHP Warning:  ftp_login() expects parameter 1 to
be resource, boolean given in /path/to/home/test.php on line 37
[08-Jan-2007 10:00:17] PHP Warning:  ftp_get() expects parameter 1 to
be resource, boolean given in /path/to/home/test.php on line 43
[08-Jan-2007 10:00:17] PHP Warning:  ftp_close() expects parameter 1 to
be resource, boolean given in /path/to/home/test.php on line 51


3. Virtual hosts  1203 - error Segmentation fault ftp file not
transferred buf
the directory contains the empty destination file:
-rw-rw-r--  1 apache webuser    0 Jan  8 10:16 test_l.dat

4. Virtual hosts 1202  the same  like 3.

5. Virtual hosts 1201  the same  like 2. but error message
   in web browser and "0" file is: 
[08-Jan-2007 10:17:47] PHP Warning:  ftp_get(): Opening BINARY mode
data connection for welcome.msg (241 bytes). in /path/to/home/test.php
on line 43

6. Virtual hosts  <= 1200  - work OK, file transferred ( 20 tests)  


Apache and php not produce any error message with file or system limits
problem.
The system limits:  ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
pending signals                 (-i) 32765
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 4096
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 32765
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

/proc/sys/fs/file-max  206037
/proc/sys/fs/file-nr  4096 0  206037

The system: Linux version 2.6.17-1.2142_FC4smp  FC4
glibc-2.3.6,  httpd-2.0.54

httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c
The apache working model: prefork.

I don't get it .

------------------------------------------------------------------------

[2007-01-03 15:30:30] [EMAIL PROTECTED]

Are you able to replicate it using PHP CLI? Or is it reproducible only
with Apache2?
For the record, I don't see any problems with fetching the
"welcome.msg" from the server you mentioned using the reproduce code of
yours with _both_ Apache2/worker and PHP CLI.

------------------------------------------------------------------------

[2007-01-03 15:10:16] youza at post dot cz

Yes I reproduce it in the public FTP server:
URL:  ftp://atrey.karlin.mff.cuni.cz/welcome.msg

Result:
Warning: ftp_get(): Opening BINARY mode data connection for welcome.msg
(241 bytes). in /web/docs/tester/youza/ftp/test.php on line 43 

apache error.log:
child pid 24559 exit signal Segmentation fault (11)

The file not copied but create empty:
-rw-rw-r--  1 apache webuser    0 Jan  3 16:04 test_l.dat

------------------------------------------------------------------------

[2006-12-30 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2006-12-22 15:35:01] [EMAIL PROTECTED]

>but file is'nt copied. In the script directory (php ??)
> create file "0"  - the file contains: 

Doesn't make any sense to me..
Are you able to reproduce it with any public accessible FTP server?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39883

-- 
Edit this bug report at http://bugs.php.net/?id=39883&edit=1

Reply via email to