Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85532 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73680 invoked from network); 29 Mar 2015 21:16:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Mar 2015 21:16:32 -0000 Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 74.125.82.45 mail-wg0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:34047] helo=mail-wg0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/A1-59993-0BB68155 for ; Sun, 29 Mar 2015 16:16:32 -0500 Received: by wgbdm7 with SMTP id dm7so44589912wgb.1 for ; Sun, 29 Mar 2015 14:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=OVBUVi3BHbVOHFUZfpQF0v0fC3ju2R/Z3Azc+KillAc=; b=l85J9IAhDWD0wqzdEK2UBHLR/bMPh3eSVFdEo2IvPLg3hWuSkL1W5DMzfvR3KxB5Rf KG9pM9KCqNsJgqUeLRwyk6gcH8+UyhoiuK42Nf4BvoXRTDxS9HNka+jLFg46xSrMoIoi TI1jz6xaBouSGaN/h9Zl6NijSNggOlMjbeyV4bzbA4LeishgW5gebUwK5ZznOjySEjuF 6j0OsgWOzi3cGOqx+WlOwGbVK/UkGiIPpUsFrBDJaQxefF74PbjsS0UlOW/UgazYKp4V lJdlYE+bWRfU3Mk/rzNDINfIZJoFWiueGDz2JPo3rlUVD7IZAm6FYLYswEtuM3LCBzYE 9gbg== X-Received: by 10.194.156.202 with SMTP id wg10mr57768511wjb.70.1427663788615; Sun, 29 Mar 2015 14:16:28 -0700 (PDT) Received: from [192.168.200.47] (dslb-092-075-016-039.092.075.pools.vodafone-ip.de. [92.75.16.39]) by mx.google.com with ESMTPSA id at4sm12787376wjc.16.2015.03.29.14.16.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Mar 2015 14:16:27 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <811951BF-F97B-43D8-BBC0-F515A80D73F7@googlemail.com> Date: Sun, 29 Mar 2015 23:16:23 +0200 To: PHP Internals Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) Subject: Strange behaviour on upload From: ingwie2000@googlemail.com ("Kevin Ingwersen (Ingwie Phoenix)") Hey. I am running my PHP app through a NodeJS server using a FastCGI bridge. = Today, I was about to implement an image uploader on my site - only to = realize that file uploads were not possible. So I generated a few files and tested how big the files must be for the = upload to fail. I got surprised how early this happened: Ingwie@Ingwies-Macbook-Pro.local ~/W/BIRD3 $ genfile 31k text.txt; and = curl -v -4 -X POST -F "img=3D@text.txt" = http://localhost:8080/user/changeAvatar (=E2=80=A6) Ingwie@Ingwies-Macbook-Pro.local ~/W/BIRD3 $ ls -l text.txt=20 -rw-r--r--+ 1 Ingwie staff 63488 29 M=C3=A4r 23:10 text.txt the genfile command is a simple function: function genfile command dd if=3D/dev/urandom of=3D$argv[2] bs=3D$argv[1] count=3D2 end (I am using the fish shell, so its slightly different to Bash.) The error that I am seeing on the PHP end is that the file array=E2=80=99s= error property shows =E2=80=9E3=E2=80=9C, which is the = UPLOAD_ERR_PARTIAL constant. My question is, under which conditions is that error triggered? I can = verify that my NodeJS FCGI bridge is correctly giving all bites to the = process, so PHP should actually have the entire request body (the file = names and contents) at hand. BTW, my backend is talking to PHP via php-fpm. Kind regards, Ingwie.=