Bug #77450 [Opn]: Segmentation fault 11 with multipart/form-data POST request without formData
| From: | sinewavz at gmail dot com | Date: | Sat, 12 Jan 2019 14:34:28 +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-218917@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
User updated by: sinewavz at gmail dot com
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
Operating System: OSX 10.14.2
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
formData = subscriptionData,
forgot to rename it
Previous Comments:
------------------------------------------------------------------------
[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