Bug #77279 [Opn->Ver]: addslashes problem

From: Date: Fri, 14 Dec 2018 13:05:57 +0000
Subject: Bug #77279 [Opn->Ver]: addslashes problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218450@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77279&edit=1 ID: 77279 Updated by: cmb@php.net Reported by: kabikov at sst dot su Summary: addslashes problem -Status: Open +Status: Verified Type: Bug -Package: Unknown/Other Function +Package: Strings related Operating System: FreeBSD 11 PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: Simpler reproducer: <?php var_dump(addslashes('"')); Previous Comments: ------------------------------------------------------------------------ [2018-12-11 22:12:28] nikic@php.net Related To: Bug #77284 ------------------------------------------------------------------------ [2018-12-10 17:00:56] kabikov at sst dot su seems more related to addslashes function ------------------------------------------------------------------------ [2018-12-10 16:57:20] kabikov at sst dot su Description: ------------ php /tmp/1.php PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1147720050061953400 bytes) in /tmp/1.php on line 2 Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1147720050061953400 bytes) in /tmp/1.php on line 2 Test script: --------------- <?php $a=""; $b=addslashes(serialize($a)); echo '['.$b.']'; Expected result: ---------------- empty string serialized Actual result: -------------- Fatal error ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77279&edit=1

« previous php.bugs (#218450) next »