Skip to content

Instantly share code, notes, and snippets.

View Tyrael's full-sized avatar

Ferenc Kovacs Tyrael

View GitHub Profile
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index 1eed2eb..a74a090 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -902,7 +902,13 @@ static const SSL_METHOD *php_select_crypto_method(long method_value, int is_clie
return NULL;
#endif
} else if (method_value == STREAM_CRYPTO_METHOD_SSLv3) {
+#ifndef OPENSSL_NO_SSL3
return is_client ? SSLv3_client_method() : SSLv3_server_method();
@Tyrael
Tyrael / gist:3bf0d24d33cf6b9e828b
Last active August 29, 2015 14:06
the columns are position, number of commits and author
1 4524 Marcus Boerger <[email protected]>
2 4495 Ilia Alshanetsky <[email protected]>
3 4079 Antony Dovgal <[email protected]>
4 3802 <[email protected]>
5 3181 Pierre Joye <[email protected]>
6 3126 Dmitry Stogov <[email protected]>
7 2754 foobar <[email protected]>
8 2734 Felipe Pena <[email protected]>
9 2179 Zeev Suraski <[email protected]>
10 2170 Sascha Schumann <[email protected]>
09:52:03 @Tyrael | [21:40:09] the ReflectionClass::newInstanceWithoutConstructor change should be also mentioned │ jpauli
09:52:03 @Tyrael | [21:40:43] which reminds me that even the current doc is wrong about which classes are not allowed to be instantiated: http://hu1.php.net/manual/en/reflectionclass.newinstancewithoutconstructor.php │ jwoodcock
09:52:03 @Tyrael | [21:40:56] "A ReflectionException if the class is an internal class that cannot be instantiated without invoking the constructor." │ krakjoe
09:52:03 @Tyrael | [21:42:20] ReflectionClass has an isInternal method, which tells you whether or not the class was defined by userland or by core/ext │
[tyrael@Ferencs-MacBook-Pro-135 php-src.git (master ✗)]$ git pull --rebase
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://git.php.net/repository/php-src
6c47f50..6453483 master -> origin/master
First, rewinding head to replay your work on top of it...
Applying: Revert "Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option"
Using index info to reconstruct a base tree...
@Tyrael
Tyrael / flex.rb
Last active August 29, 2015 14:02
require 'formula'
class Flex < Formula
homepage 'http://flex.sourceforge.net'
url 'http://ftp.gnu.org/old-gnu/gnu-0.2/src/flex-2.5.4.tar.gz'
sha1 '308b912c41f68504f1256e57218bde266fc07c57'
bottle do
sha1 "ea93eb8bc57868e9e4cfe50ab39fc3c7f2ccbb58" => :mavericks
sha1 "ec164496e9eec22a920e935f57dea4bc16fa4afd" => :mountain_lion
@Tyrael
Tyrael / bison.rb
Created June 14, 2014 20:02
bison.rb
require 'formula'
class Bison < Formula
homepage 'http://www.gnu.org/software/bison/'
url 'http://ftpmirror.gnu.org/bison/bison-2.6.2.tar.gz'
mirror 'http://ftp.gnu.org/gnu/bison/bison-2.6.2.tar.gz'
sha1 'a687f25f1be06e010a2624302bde4d488b26f3a7'
keg_only :provided_by_osx, 'Some formulae require a newer version of bison.'
@Tyrael
Tyrael / bison.rb
Last active August 29, 2015 14:02
bison.rb
require 'formula'
class Bison < Formula
homepage 'http://www.gnu.org/software/bison/'
url 'http://ftpmirror.gnu.org/bison/bison-2.4.3.tar.gz'
mirror 'http://ftp.gnu.org/gnu/bison/bison-2.4.3.tar.gz'
sha1 'cd0b61d3957bb45a080a6246c43fc4f342b4aa26'
keg_only :provided_by_osx, 'Some formulae require a newer version of bison.'
<?php
if ($_SERVER) {}
@Tyrael
Tyrael / gist:9461895
Created March 10, 2014 09:22
git reset to remote tracking branch
git reset --hard `git rev-parse --abbrev-ref @{upstream}`
@Tyrael
Tyrael / johannes_intro
Created November 5, 2013 00:25
Johannes
Jó napot!
Schlüter Johannes vagyok Münchenből, és ma a PHP-ről fogok beszélni.
Tagja vagyok a PHP és az Oracle Mysql fejlesztőcsapatának.
Mielőtt elkezdeném az előadást, lenne néhány kérdésem:
* Kik azok, akik még mindig használják a PHP 5.2-t(öt pont kettőt)?
* Kik azok, akik már az 5.3-t(öt pont hármat)?
* Ki használ már 5.4-et(öt pont négyet)?
* És 5.5-öt(öt pont ötöt)?