|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-02-08 04:48 UTC] requinix@php.net
-Status: Open
+Status: Duplicate
-Package: Compile Failure
+Package: Scripting Engine problem
[2019-02-08 04:48 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ After execute this simple code: $message = 'some text '.inet_pton('119.252.33.171'); throw new \Exception($message); PHP returns Fatal Error Fatal error</b>: in ... This behavior is noticed when converting many other IPs. At the moment I solved the problem with the following line before "throw new": $message = preg_replace( '/[^[:print:]\r\n]/', '_', $message); Test script: --------------- <?php //http://sandbox.onlinephpfunctions.com/code/0010e95a4bec4f6a4521ad58af90db256db6224b $message = 'some text '.inet_pton('119.252.33.171'); //$message = preg_replace( '/[^[:print:]\r\n]/', 'X', $message); throw new \Exception($message); //$message = 'some text '; //throw new \Exception($message);