Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此 PHP 代码使用段错误使主机(Apache)崩溃:
$myRedis->hSet("some key name", NULL);
这对我来说很麻烦,因为 PHP 应该是一种高级语言,它不会取消引用 NULL 指针,而是将它们作为“空值”接受或抛出异常。
我是唯一一个看到这个的吗?(此代码在 PHP 5.3 和 5.5 中运行良好)
尝试这个:
$myRedis->hSet("some key name", null, null);
此外, 检查这个