Bug #77279 [Opn]: addslashes problem

From: Date: Mon, 10 Dec 2018 17:00:56 +0000
Subject: Bug #77279 [Opn]: addslashes problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218374@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 User updated by: kabikov at sst dot su Reported by: kabikov at sst dot su -Summary: empty string serialization +Summary: addslashes problem Status: Open Type: Bug Package: Unknown/Other Function Operating System: FreeBSD 11 PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: seems more related to addslashes function Previous Comments: ------------------------------------------------------------------------ [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 (#218374) next »