Commit: f5b0fe5bc2ac4134f7d138e70bd7c15cc43f18af Author: Andi Rückauer <[email protected]> Wed, 7 Aug 2019 13:41:28 +0200 Committer: Christoph M. Becker <[email protected]> Wed, 7 Aug 2019 16:20:32 +0200 Parents: 372bda23828017d80767bc31393022b774e629d8 Branches: master
Link: http://git.php.net/?p=web/windows.git;a=commitdiff;h=f5b0fe5bc2ac4134f7d138e70bd7c15cc43f18af Log: Fix notice of undefined variable Changed paths: M include/listing.php Diff: diff --git a/include/listing.php b/include/listing.php index 5382fdc..f76d5d8 100644 --- a/include/listing.php +++ b/include/listing.php @@ -10,7 +10,7 @@ function bytes2string($size, $precision = 2) { } -function processSha1Sums($path) +function processSha1Sums($snaps_dir) { if (!file_exists($snaps_dir . 'sha1sum.txt')) { return array(); @@ -26,7 +26,7 @@ function processSha1Sums($path) } -function processSha256Sums($path) +function processSha256Sums($snaps_dir) { if (!file_exists($snaps_dir . 'sha256sum.txt')) { return array(); @@ -145,7 +145,7 @@ function generate_listing($path, $nmode) { $source = 'php-' . $elms['version_short'] . '/php-' . $elms['version_short'] . '-src-latest.zip'; $configure = 'configure-' . $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; $compile = 'compile-' . $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; - $buildconf = 'buildconf-'. $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; + $buildconf = 'buildconf-'. $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; } else { $debug_pack = 'php-debug-pack-' . $elms['version'] . ($elms['nts'] ? '-' . $elms['nts'] : '') . '-Win32-' . $elms['vc'] . '-' . $elms['arch'] . ($elms['ts'] ? '-' . $elms['ts'] : '') . '.zip'; $devel_pack = 'php-devel-pack-' . $elms['version'] . ($elms['nts'] ? '-' . $elms['nts'] : '') . '-Win32-' . $elms['vc'] . '-' . $elms['arch'] . ($elms['ts'] ? '-' . $elms['ts'] : '') . '.zip'; @@ -166,7 +166,7 @@ function generate_listing($path, $nmode) { 'sha1' => $sha1sums[strtolower($debug_pack)], 'sha256' => $sha256sums[strtolower($debug_pack)] ); - } + } if (file_exists($devel_pack)) { $releases[$version_short][$key]['devel_pack'] = array( 'size' => bytes2string(filesize($devel_pack)), -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
