Page MenuHomePhabricator

Add phan stubs for php extensions redis and imagick
Closed, ResolvedPublic

Description

The php extensions redis and imagick are needed to run phan without failures on local machine.
When the extensions are not installed in the used php version, than errors are reported.
Phan stubs should be added for both extensions and used when the classes are not available from php itself

Or it is enough to list them under suggest in composer.json?

Details

Related Gerrit Patches:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 3 2019, 3:14 PM

A stub for pcntl should be included, because windows user cannot install that extension.

Also a stub for sockets extension is needed:

MSG_EOR (integer)
Not available on Windows platforms.
MSG_EOF (integer)
Not available on Windows platforms.

Change 517718 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/core@master] phan: Add internal stubs for imagick, pcntl, redis & sockets

https://gerrit.wikimedia.org/r/517718

Change 517718 merged by jenkins-bot:
[mediawiki/core@master] phan: Add internal stubs for imagick, pcntl, redis & sockets

https://gerrit.wikimedia.org/r/517718

Legoktm closed this task as Resolved.Jul 9 2019, 4:49 AM