Bug #77450 [Opn]: Segmentation fault 11 with multipart/form-data POST request without formData

From: Date: Tue, 06 Jul 2021 14:37:08 +0000
Subject: Bug #77450 [Opn]: Segmentation fault 11 with multipart/form-data POST request without formData
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234823@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77450&edit=1 ID: 77450 Updated by: cmb@php.net Reported by: sinewavz at gmail dot com Summary: Segmentation fault 11 with multipart/form-data POST request without formData Status: Open Type: Bug -Package: *Data Exchange functions +Package: *Web Server problem Operating System: OSX 10.14.2 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: If this is still an issue with any of the actively supported PHP versions[1], please provide the raw HTTP payload (not only the headers). [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2019-01-14 15:29:55] sinewavz at gmail dot com equest headers (534 B) Accept application/json, text/plain, */* Accept-Encoding gzip, deflate Accept-Language en-US,en;q=0.5 Authorization Bearer MWFmNDkxNWVlMDcwYTlhOWU…DlkOWRiZGMxODJkZjhi3MTY4NQ Connection keep-alive Content-Length 13 Content-Type multipart/form-data Host localhost:8000 Origin http://localhost:8080 Referer http://localhost:8080/admin/create-job User-Agent Mozilla/5.0 (Macintosh; Intel …) Gecko/20100101 Firefox/65.0 ------------------------------------------------------------------------ [2019-01-14 09:27:59] nikic@php.net Can you please provide the raw HTTP payload that is being sent? ------------------------------------------------------------------------ [2019-01-12 14:34:28] sinewavz at gmail dot com formData = subscriptionData, forgot to rename it ------------------------------------------------------------------------ [2019-01-12 14:32:41] sinewavz at gmail dot com Description: ------------ tested on php 7.28 and 7.2.9 error: [ERROR] The process has been signaled with signal "11". PHP crashes when sending post request with 'Content-Type': 'multipart/form-data' headers while attaching a plain javascript object instead of a regular formData object Environment MAMPP PHP 7.28 and 7.2.9 Symfony 3.4 Vue.JS Test script: --------------- JAVASCRIPT CODE : const formData = { subscription: this.form} $http.post(config.api_url + config.subscription_path + '/create', subscriptionData, { headers: { 'Content-Type': 'multipart/form-data' } }) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77450&edit=1

« previous php.bugs (#234823) next »