com php-src: fixe output_as_table() when no ext was enabled: win32/build/confutils.js

From: Date: Fri, 11 Jul 2014 07:36:44 +0000
Subject: com php-src: fixe output_as_table() when no ext was enabled: win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-79414@lists.php.net to get a copy of this message
Commit: 9f5cf7d41a6d5efd29109c589cb665723daff122 Author: Anatol Belski <ab@php.net> Fri, 11 Jul 2014 09:36:44 +0200 Parents: 02b661ecfcc6ddfbeb75b8226690eac5786d6189 Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9f5cf7d41a6d5efd29109c589cb665723daff122 Log: fixe output_as_table() when no ext was enabled Changed paths: M win32/build/confutils.js Diff: diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 05eaa85..ef50dfe 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -1498,7 +1498,7 @@ function output_as_table(header, ar_out) var min = new Array(l); var max = new Array(l); - if (l != ar_out[0].length) { + if (!!ar_out[0] && l != ar_out[0].length) { STDOUT.WriteLine("Invalid header argument, can't output the table " + l + " " + ar_out[0].length ); return; }

« previous php.cvs (#79414) next »