Re: [RFC] deprecate PDO::PARAM_NULL
| From: | Dorin Marcoci | Date: | Thu, 18 May 2017 08:15:53 +0000 |
| Subject: | Re: [RFC] deprecate PDO::PARAM_NULL | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-99094@lists.php.net to get a copy of this message | ||
> I would agree that NULL is not a type and the constant shouldn't have
> been there in the first place, but I think it could be a bit too late now.
Raising an warning for first 1-2 years with later removal sounds OK.
Also docs should be updated to mark this constant deprecated.
Yes, null is a state, not a type. ->bindValue('Foo', PDO::PARAM_NULL) is
awesome.
So it should be deprecated and removed.