Re: FFI extension / NULL-Checks

From: Date: Mon, 09 Sep 2019 08:13:21 +0000
Subject: Re: FFI extension / NULL-Checks
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-106915@lists.php.net to get a copy of this message
Hi! > isset($err) > $err[0] != null > -> is always true, regardless of whether func as assigned an error or not > > $err[0]; > -> segfault This is a bit confusing - if $err[0] segfaults, how it can be != null? Does this behave differently in different contexts? Anyway, it shouldn't probably segfault in any case, so this looks like a bug. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#106915) next »