style changes
I'll do the nitpicks, sorry @jdelong.
Esse commit está contido em:
+6
-7
@@ -58,14 +58,13 @@ function error($message) {
|
||||
|
||||
function hphp_home() {
|
||||
static $ret;
|
||||
if (!$ret) {
|
||||
$top_level = system('git rev-parse --show-toplevel', $status);
|
||||
if ($status === 0) {
|
||||
return $ret = rtrim($top_level, '/');
|
||||
}
|
||||
error("Couldn't determine the root of your fbcode repository.\n");
|
||||
if ($ret) { return $ret; }
|
||||
|
||||
$top_level = system('git rev-parse --show-toplevel', $status);
|
||||
if ($status === 0) {
|
||||
return $ret = rtrim($top_level, '/');
|
||||
}
|
||||
return $ret;
|
||||
error("Couldn't determine the root of your fbcode repository.\n");
|
||||
}
|
||||
|
||||
function idx($array, $key, $default = null) {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$d = dir(__DIR__."/../../sample_dir/");
|
||||
echo "Path: " . $d->path . "\n";
|
||||
$files = array(); // order changes per machine
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$sample_dir = __DIR__.'/../../sample_dir';
|
||||
|
||||
$files = array();
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$dir = new DirectoryIterator(__DIR__.'/../../sample_dir');
|
||||
$files = array(); // order changes per machine
|
||||
while($dir->valid()) {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$ite=new RecursiveDirectoryIterator(__DIR__.'/../../sample_dir/');
|
||||
$bytestotal=0;
|
||||
$nbfiles=0;
|
||||
@@ -15,5 +13,4 @@ foreach ($ite as $filename=>$cur) {
|
||||
}
|
||||
asort($files);
|
||||
var_dump(array_values($files));
|
||||
$bytestotal=number_format($bytestotal);
|
||||
echo "Total: $nbfiles files, $bytestotal bytes\n";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
array(5) {
|
||||
[0]=>
|
||||
string(%d) "%s../../sample_dir/dir => 18
|
||||
string(%d) "%s../../sample_dir/dir => %d
|
||||
"
|
||||
[1]=>
|
||||
string(%d) "%s../../sample_dir/empty => 0
|
||||
@@ -15,4 +15,4 @@ array(5) {
|
||||
string(%d) "%s../../sample_dir/symlink => 3
|
||||
"
|
||||
}
|
||||
Total: 5 files, 483 bytes
|
||||
Total: 5 files, %d bytes
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$ite=new RecursiveDirectoryIterator(__DIR__.'/../../sample_dir/');
|
||||
$bytestotal=0;
|
||||
$nbfiles=0;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$path = __DIR__."/../../sample_dir/";
|
||||
$files = array(); // order changes per machine
|
||||
foreach (new RecursiveIteratorIterator(
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
$directory = __DIR__."/../../sample_dir";
|
||||
$fileSPLObjects = new RecursiveIteratorIterator(
|
||||
new RecursiveDirectoryIterator($directory),
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
||||
|
||||
function getFiles(&$rdi,$depth=0) {
|
||||
if (!is_object($rdi)) return;
|
||||
$files = array(); // order changes per machine
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
function test($options) {
|
||||
return new MySoap(__DIR__.'/../../test.wsdl', $options);
|
||||
return new MySoap(__DIR__.'/1809.wsdl', $options);
|
||||
}
|
||||
|
||||
var_dump(test(array('foo' => 'bar'))->pub);
|
||||
|
||||
@@ -23147,7 +23147,7 @@ bool TestCodeRun::TestExtSoap() {
|
||||
" }"
|
||||
"}"
|
||||
"function test($options) {"
|
||||
" return new MySoap('test/test.wsdl', $options);"
|
||||
" return new MySoap('test/slow/ext_soap/1809.wsdl', $options);"
|
||||
"}"
|
||||
"var_dump(test(array('foo' => 'bar'))->pub);");
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ bool TestExtSoap::test_SoapServerArrayParam() {
|
||||
|
||||
bool TestExtSoap::test_SoapServerWSDL() {
|
||||
m_server = p_SoapServer(NEWOBJ(c_SoapServer)());
|
||||
m_server->t___construct("test/test.wsdl",
|
||||
m_server->t___construct("test/slow/ext_soap/1809.wsdl",
|
||||
CREATE_MAP1("uri", "http://testuri.org"));
|
||||
m_server->t_addfunction("Add");
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário