equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_File_Transfer |
16 * @package Zend_File_Transfer |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Http.php 22563 2010-07-15 20:42:04Z thomas $ |
19 * @version $Id: Http.php 25087 2012-11-06 21:15:45Z rob $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * @see Zend_File_Transfer_Adapter_Abstract |
23 * @see Zend_File_Transfer_Adapter_Abstract |
24 */ |
24 */ |
27 /** |
27 /** |
28 * File transfer adapter class for the HTTP protocol |
28 * File transfer adapter class for the HTTP protocol |
29 * |
29 * |
30 * @category Zend |
30 * @category Zend |
31 * @package Zend_File_Transfer |
31 * @package Zend_File_Transfer |
32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 */ |
34 */ |
35 class Zend_File_Transfer_Adapter_Http extends Zend_File_Transfer_Adapter_Abstract |
35 class Zend_File_Transfer_Adapter_Http extends Zend_File_Transfer_Adapter_Abstract |
36 { |
36 { |
37 protected static $_callbackApc = 'apc_fetch'; |
37 protected static $_callbackApc = 'apc_fetch'; |
126 } |
126 } |
127 |
127 |
128 // Workaround for a PHP error returning empty $_FILES when form data exceeds php settings |
128 // Workaround for a PHP error returning empty $_FILES when form data exceeds php settings |
129 if (empty($this->_files) && ($content > 0)) { |
129 if (empty($this->_files) && ($content > 0)) { |
130 if (is_array($files)) { |
130 if (is_array($files)) { |
|
131 if (0 === count($files)) { |
|
132 return false; |
|
133 } |
|
134 |
131 $files = current($files); |
135 $files = current($files); |
132 } |
136 } |
133 |
137 |
134 $temp = array($files => array( |
138 $temp = array($files => array( |
135 'name' => $files, |
139 'name' => $files, |