Re: Re: Help - gcc mystery in ext/imap
| From: | Johannes Schlüter | Date: | Tue, 20 Jan 2015 22:39:03 +0000 |
| Subject: | Re: Re: Help - gcc mystery in ext/imap | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80914@lists.php.net to get a copy of this message | ||
On Tue, 2015-01-20 at 14:13 -0800, Rasmus Lerdorf wrote:
> So, I guess the lesson is that we need to be careful when we migrate
> extensions to PHP 7. Passing ints instead of size_t string length params
> to zpp can cause extreme weirdness and we should go through all our
> bundled extensions and make sure things that are still using "s" have
> all been changed to size_t.
There is this plugin to clang's static analyzer which should help:
https://github.com/johannes/clang-php-checker
It might needs updates for current types, though. Relevant code place to
update:
https://github.com/johannes/clang-php-checker/blob/master/PHPZPPChecker.cpp#L67
johannes
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc