Check for empty keys in APCnightly-2020.11.06
commitb99f1ca5b6d238bee0d5e71cccbb480a97eec9be
authorMichael Colavita <mcolavita@fb.com>
Thu, 5 Nov 2020 23:46:35 +0000 (5 15:46 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 6 Nov 2020 00:23:50 +0000 (5 16:23 -0800)
tree7986f685a866c3c03353057d1e5d7a1b2010f961
parent8bc3a1c99ec42b5659a56f2b93b3a4d2a66c5a0d
Check for empty keys in APC

Summary: Currently, we crash if an empty key is inserted into APC. Raise an error instead.

Reviewed By: ricklavoie

Differential Revision: D24761146

fbshipit-source-id: 2deca87309da798b20690f577b9b48ea0d21b925
hphp/runtime/ext/apc/ext_apc.cpp
hphp/test/slow/apc_empty.php [new file with mode: 0644]
hphp/test/slow/apc_empty.php.expectf [new file with mode: 0644]
hphp/test/slow/apc_empty.php.nomultireq [new file with mode: 0644]