Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
UploadedFile infinite loop #29360
When creating UploadedFile from some existing on server file script has error 504 Gateway Time-out. Nginx and Symfony logs are ok, no exceptions or errors. Script just stops on line where new UploadedFile instance initialized.
This is method to parse and save image from facebook, next steps are create UserAvatar image and assign relations.
This is occur not always only sometimes in runtime, when image uploading from facebook. Tell me please what may cause such behaviour?
$destination = __DIR__.'/random.jpg'; \file_put_contents($destination, \fopen('https://pp.userapi.com/c850616/v850616593/56299/KaaA_5RV8Qw.jpg', 'rb')); new UploadedFile($destination, 'dog.jpeg'); // works perfectly
In fact there is no loop in the constructor of
Strange thing, for other devs and production code works fine, only I have bug on my local machine sometimes. 3 methods above worked well.