Skip to content

Support for extensions like Zend Data Cache #6167

@marc-mabe

Description

@marc-mabe

My composer.json:

// ...
    "require": {
        "php": "^5.6 || ^7.0",
        "ext-Zend Data Cache": "*"
    },
// ...

Output of composer diagnose:

Checking composer.json: WARNING
require.ext-Zend Data Cache : invalid key, package names must be strings containing only [A-Za-z0-9_./-]
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK

When I run this command:

composer.phar install

I get the following output:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested PHP extension ext-zend data cache * has the wrong version (0) installed. Install or enable PHP's zend data cache extension.

And I expected this to happen:

Install dependencies as the extension is installed and loaded


I know the extension name is quite strange but of course it's nothing I can change (Also will try to open an issue at zend). Here is a test script to show the extension is available as Zend Data Cache but no version:

var_dump(get_loaded_extensions());

$ext = 'Zend Data Cache';
var_dump(extension_loaded($ext), phpversion($ext));
array(63) {
  [0]=>
  string(4) "Core"
  [1]=>
  string(4) "date"
  [2]=>
  string(6) "libxml"
  [3]=>
  string(7) "openssl"
  [4]=>
  string(4) "pcre"
  [5]=>
  string(7) "sqlite3"
  [6]=>
  string(4) "zlib"
  [7]=>
  string(3) "dom"
  [8]=>
  string(6) "filter"
  [9]=>
  string(4) "hash"
  [10]=>
  string(5) "iconv"
  [11]=>
  string(4) "json"
  [12]=>
  string(3) "SPL"
  [13]=>
  string(3) "PDO"
  [14]=>
  string(8) "readline"
  [15]=>
  string(10) "Reflection"
  [16]=>
  string(7) "session"
  [17]=>
  string(9) "SimpleXML"
  [18]=>
  string(10) "pdo_sqlite"
  [19]=>
  string(8) "standard"
  [20]=>
  string(3) "xml"
  [21]=>
  string(9) "xmlreader"
  [22]=>
  string(9) "xmlwriter"
  [23]=>
  string(7) "mysqlnd"
  [24]=>
  string(6) "bcmath"
  [25]=>
  string(3) "bz2"
  [26]=>
  string(8) "calendar"
  [27]=>
  string(5) "ctype"
  [28]=>
  string(4) "curl"
  [29]=>
  string(8) "mbstring"
  [30]=>
  string(8) "fileinfo"
  [31]=>
  string(3) "ftp"
  [32]=>
  string(2) "gd"
  [33]=>
  string(7) "gettext"
  [34]=>
  string(4) "imap"
  [35]=>
  string(4) "intl"
  [36]=>
  string(4) "ldap"
  [37]=>
  string(4) "exif"
  [38]=>
  string(6) "mcrypt"
  [39]=>
  string(6) "mysqli"
  [40]=>
  string(4) "oci8"
  [41]=>
  string(9) "pdo_mysql"
  [42]=>
  string(9) "pdo_pgsql"
  [43]=>
  string(5) "pgsql"
  [44]=>
  string(4) "Phar"
  [45]=>
  string(5) "posix"
  [46]=>
  string(4) "soap"
  [47]=>
  string(7) "sockets"
  [48]=>
  string(4) "tidy"
  [49]=>
  string(9) "tokenizer"
  [50]=>
  string(3) "xsl"
  [51]=>
  string(3) "zip"
  [52]=>
  string(15) "Zend Data Cache"
  [53]=>
  string(3) "apc"
  [54]=>
  string(14) "Zend Job Queue"
  [55]=>
  string(23) "Zend Session Clustering"
  [56]=>
  string(10) "Zend Utils"
  [57]=>
  string(12) "Zend OPcache"
  [58]=>
  string(17) "Zend Code Tracing"
  [59]=>
  string(17) "Zend Server Z-Ray"
  [60]=>
  string(12) "Zend Monitor"
  [61]=>
  string(13) "Zend Debugger"
  [62]=>
  string(15) "Zend Page Cache"
}
bool(true)
bool(false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions