php fails trying to load redis.so

not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), /usr/lib/php/extensions/no-debug-non-zts-20180731//Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731//Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so, 0x0009): in Unknown on line 0


How to code sign the library built by using
git clone https://www.github.com/phpredis/phpredis.git

Thanks,



Are you using the built-in PHP, that is, /usr/bin/php? If so, you won’t be able to make this work. The built-in PHP is a platform binary, which means it’s only able to load Apple code. My general advice on this front is that you install your own version of PHP, which gives you more control over how it’s signed and thus what code it can load.

Also, make sure you read the Scripting Language Runtimes section of the macOS Catalina 10.15 Release Notes. While it doesn’t explicitly list PHP, it’s safe to assume that it applies there as well.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"

WWDC runs Mon, 22 Jun through to Fri, 26 Jun. During that time all of DTS will be busy with conference duties.
Hi,

Why does Apple not provide us a php redis library enabled in php just like pgsql, mysql.

It would just make life easy.

Thanks,
Bharati



Why does Apple not provide us a php redis library enabled in php

I can’t really answer “Why” questions. My normal advice in situations like this is that you file an enhancement request describing your requirements. However, in this case I think last year’s announcement changes that advice:
  • If you’re doing serious work with one of the built-in scripting languages, you should install your own copy using your preferred open source package manager.

  • If you’re shipping a product that relies on one of the built-in scripting languages, bundle that with your product.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
php fails trying to load redis.so
 
 
Q