Skip to content

Instantly share code, notes, and snippets.

adam@a9626:~/curl-openssl-investigation$ ./curl-test-opensslv1 30 | tee >(awk '{print $1}' | descstat ______total) >(awk '{print $2}' | descstat pretransfer) | cat
0.0516350 0.0083990
0.0557380 0.0115380
0.0637240 0.0194700
0.0637580 0.0193470
0.0595150 0.0183500
0.0598030 0.0180890
0.0597670 0.0188390
0.0597350 0.0187390
0.0634720 0.0189160
diff --git a/Zend/tests/is_in_autoload.phpt b/Zend/tests/is_in_autoload.phpt
new file mode 100644
index 0000000000..29d4ca7ccc
--- /dev/null
+++ b/Zend/tests/is_in_autoload.phpt
@@ -0,0 +1,49 @@
+--TEST--
+Test is_in_autoload() functionality
+--FILE--
+<?php
#
# Copyright:: Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
// gcc -g -O0 -Ilib -Llib test.c lib/libzstd.a -o test && ./test aaaaaaaaaaaa
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zstd.h>
int main(int argc, char **argv) {
char *payload = argc > 1 ? argv[1] : "compress me";
size_t payload_len = strlen(payload);
diff --git a/go/cmd/zk/zkcmd.go b/go/cmd/zk/zkcmd.go
index 6b2c4a3840..8045d33b3f 100644
--- a/go/cmd/zk/zkcmd.go
+++ b/go/cmd/zk/zkcmd.go
@@ -466,41 +466,41 @@ func cmdTouch(ctx context.Context, subFlags *pflag.FlagSet, args []string) error
case createParents:
_, err = zk2topo.CreateRecursive(ctx, zconn, zkPath, data, 0, zk.WorldACL(zk.PermAll), 10)
default:
_, err = zconn.Create(ctx, zkPath, data, 0, zk.WorldACL(zk.PermAll))
}
diff --git a/go/vt/vttablet/tabletmanager/tm_init.go b/go/vt/vttablet/tabletmanager/tm_init.go
index 63e0961f86..e157842913 100644
--- a/go/vt/vttablet/tabletmanager/tm_init.go
+++ b/go/vt/vttablet/tabletmanager/tm_init.go
@@ -920,8 +920,10 @@ func (tm *TabletManager) initializeReplication(ctx context.Context, tabletType t
// If using semi-sync, we need to enable it before connecting to primary.
// We should set the correct type, since it is used in replica semi-sync
tablet.Type = tabletType
- if err := tm.fixSemiSync(tabletType, convertBoolToSemiSyncAction(reparentutil.IsReplicaSemiSync(durability, currentPrimary.Tablet, tablet))); err != nil {
- return nil, err
diff --git a/include/http_config.h b/include/http_config.h
index c93c3b2..ade284b 100644
--- a/include/http_config.h
+++ b/include/http_config.h
@@ -269,20 +269,22 @@ struct ap_configfile_t {
/**< an apr_file_gets()-like function */
apr_status_t (*getstr) (void *buf, apr_size_t bufsiz, void *param);
/**< a close handler function */
apr_status_t (*close) (void *param);
/**< the argument passed to getch/getstr/close */
From dac14b44692297e60f909bcb03cf209652f97b09 Mon Sep 17 00:00:00 2001
From: Adam Saponara <[email protected]>
Date: Mon, 15 Aug 2022 22:31:13 -0400
Subject: [PATCH] Add intadd function
---
ext/standard/basic_functions.stub.php | 3 +++
ext/standard/basic_functions_arginfo.h | 6 +++++-
ext/standard/math.c | 14 ++++++++++++++
ext/standard/tests/math/intadd.phpt | 14 ++++++++++++++
From e3e2c987154055fceea4d459c34699a44d36cada Mon Sep 17 00:00:00 2001
From: Adam Saponara <[email protected]>
Date: Wed, 3 Aug 2022 18:27:14 -0400
Subject: [PATCH] Add sixel support
---
terminal/terminal-preferences-dialog.c | 15 +++++++++++++++
terminal/terminal-preferences.c | 11 +++++++++++
terminal/terminal-screen.c | 16 +++++++++++++++-
3 files changed, 41 insertions(+), 1 deletion(-)
<?php
declare(strict_types=1);
$libreadline_so = __DIR__ . '/vendor/readline/shlib/libreadline.so.8.1';
$readline_h = <<<'EOD'
int rl_catch_signals;
int rl_catch_sigwinch;
int rl_change_environment;
int rl_point;
char *rl_display_prompt;