Pickle\Package\PHP\Command\Release\Windows\Binary::getMultiExtensionNames PHP Method

getMultiExtensionNames() public method

    public function getMultiExtensionNames()
    {
        $info = $this->build->getInfo();
        $ext_names = array($info['name']);
        /* config.w32 can contain multiple EXTENTION definitions, which would lead to
           multiple DLLs be built. */
        $config_w32_path = $this->build->getPackage()->getSourceDir() . DIRECTORY_SEPARATOR . 'config.w32';
        $config_w32 = file_get_contents($config_w32_path);
        if (preg_match_all("/EXTENSION\\s*\\(\\s*('|\")([a-z0-9_]+)('|\")\\s*,/Sm", $config_w32, $m, PREG_SET_ORDER)) {
            foreach ($m as $r) {
                if (!in_array($r[2], $ext_names)) {
                    $ext_names[] = $r[2];
                }
            }
        }
        return $ext_names;
    }