function write_asset_file_contents($joined_file_path, $sources_path, $extension) { $content = array(); $d = Dir($sources_path); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && "{$sources_path}/{$entry}" != $joined_file_path && preg_match("/\\.{$extension}\$/", $entry) > 0) { $content[] = file_get_contents("{$sources_path}/{$entry}"); } } $d->close(); file_put_contents($joined_file_path, join($content, "\n")); }
function recurselist($path, &$items) { $d = Dir($path); while ($entry = $d->read()) { if (is_dir($path . '/' . $entry) && $entry[0] != '.') { recurselist($path . '/' . $entry, $items); } if (is_file($path . '/' . $entry) && $entry != 'Interface.php') { $value = substr($entry, 0, -4); $items[$value] = $value; } } }
</pre> <a name='releases'></a> <h2>Releases</h2> <p>The Windows binaries generally work for every mini release for the mentioned PHP version, although the extension is built against the most current PHP version at that time. The VC<i>x</i> marker tells with which compiler the extension was built, and Non-thread-safe whether ZTS was disabled. Those qualifiers need to match the PHP version you're using. If you don't know which one you need, please refer to the <a href='/find-binary.php'>custom installation instructions</a>.</p> <?php // open the files dir, and scan $d = Dir('files'); $files = array(); while (false !== ($entry = $d->read())) { if (preg_match('@^xdebug-([12]\\.[0-9]\\.[0-9].*?)\\.tgz$@', $entry, $m)) { $files[strtolower($m[1])]['source'] = $entry; } if (preg_match('@^php_xdebug-(2\\.[0-9]\\.[0-9].*?)-[456]\\.[0-9](\\.[0-9])?(-vc[69])?(-nts)?(-(x86|x86_64))?\\.dll$@', $entry, $m)) { $files[strtolower($m[1])]['dll'][] = $entry; } } uksort($files, 'version_compare'); foreach (array_reverse($files) as $version => $tar) { echo "<strong>Xdebug {$version}"; $f = stat("files/{$tar['source']}"); $d = date('Y-m-d', $f['mtime']); echo "<div class='copy'>Release date: {$d}</div></strong>\n";
static function getDataDir() { $conf = Config::getInstance(); return Dir($conf->root_dir . $conf->data_dir . '/packages', true); }