xref: /php-src/ext/ftp/tests/filesize_large.phpt (revision e9f783fc)
1--TEST--
2Verify php can handle filesizes >32bit
3--EXTENSIONS--
4ftp
5pcntl
6--SKIPIF--
7<?php
8if (2147483647 == PHP_INT_MAX) {
9    die('skip 64-bit only');
10}
11?>
12--FILE--
13<?php
14require 'server.inc';
15
16$ftp = ftp_connect('127.0.0.1', $port);
17if (!$ftp) die("Couldn't connect to the server");
18
19ftp_login($ftp, 'user', 'pass');
20var_dump(ftp_size($ftp, 'largefile'));
21
22ftp_close($ftp);
23?>
24--EXPECT--
25int(5368709120)
26