php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80589 The code in examples/ is not working
Submitted: 2021-01-05 02:52 UTC Modified: 2021-10-10 04:22 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: me at tobias dot ws Assigned: ramsey (profile)
Status: No Feedback Package: uploadprogress (PECL)
PHP Version: 7.4.13 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: me at tobias dot ws
New email:
PHP Version: OS:

 

 [2021-01-05 02:52 UTC] me at tobias dot ws
Description:
------------
docker-compose up
[...]
uploadprogress-example | 172.23.0.1 - - [05/Jan/2021:02:46:17 +0000] "GET /check-progress.php?identifier=pi6y292rife&fieldName=uploadprogressFile HTTP/1.1" 200 224 "http://test.localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0"
uploadprogress-example | [Tue Jan 05 02:46:17.532953 2021] [php7:warn] [pid 19] [client 172.23.0.1:57778] PHP Warning:  array_merge(): Expected parameter 1 to be an array, null given in /var/www/html/check-progress.php on line 43, referer: http://test.localhost:8080/
uploadprogress-example | 172.23.0.1 - - [05/Jan/2021:02:46:17 +0000] "GET /check-progress.php?identifier=pi6y292rife&fieldName=uploadprogressFile HTTP/1.1" 200 224 "http://test.localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0"



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-28 23:51 UTC] ramsey@php.net
-Assigned To: +Assigned To: ramsey
 [2021-09-28 23:54 UTC] ramsey@php.net
The only way it can pass a NULL value to array_merge() is if the call to uploadprogress_get_info() returns NULL, which typically means that it can't find the identifier.

I'm unable to reproduce this, but I've updated the code so that the example uses the latest uploadprogress version, and the check-progress.php script now responds with a 500 server error, if it detects a problem. You can look in the network tab of your browser's developer console to see the error responses.
 [2021-09-29 00:02 UTC] ramsey@php.net
-Status: Assigned +Status: Feedback
 [2021-10-10 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC