Php script run reports Segmentation fault error

problem description

initializing an array in a php script will inevitably result in a Segmentation fault error;
this array goes like this:

$msg_data = [
                "keyword1" => ["value" => ""],
                "keyword2" => ["value" => $lname],
                "keyword3" => ["value" => $create_user.""]
            ];

the environmental background of the problems and what methods you have tried

I"ve tried all kinds of ways to create this array, which will go wrong as long as the value contains a string, which is run under centos.

before running this code is no problem, since yesterday there must be segmentation fault, Baidu a lot, probably due to memory overflow or php module problems, then I can not find out where the overflow, because there is no big data, there is no endless loop, module problems are not too clear how to debug. Please provide some ideas, thank you very much!

Php
Dec.17,2021

this looks fine. Just run a script to see if there's a problem. If this is the only step that has a problem, it should be that your code is abnormal. You can open the core dump, of the system and follow it to see


use code dump to report errors as errors in the red box. I was very confused when I saw it. No, no, no. I wonder if the great god can read

.
Menu