This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string(12) "Oh Exception" | |
Finally Foo::bar | |
Finally Foo::qux | |
Fatal error: Uncaught RuntimeException: Oh qux! in /opt/src/php-src/try-finally-auto.php:22 | |
Stack trace: | |
#0 /opt/src/php-src/try-finally-auto.php(30): Foo->qux() | |
#1 {main} | |
thrown in /opt/src/php-src/try-finally-auto.php on line 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config.m4 b/config.m4 | |
index 90bbe66..e3ffe7c 100644 | |
--- a/config.m4 | |
+++ b/config.m4 | |
@@ -1,47 +1,10 @@ | |
dnl $Id$ | |
dnl config.m4 for extension xz | |
-dnl Comments in this file start with the string 'dnl'. | |
-dnl Remove where necessary. This file will not work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \parallel\{Runtime, Future, Channel, Events}; | |
/* usage php crawler.php [http://example.com] [workers=8] [limit=500] */ | |
$page = $argv[1] ?: "https://blog.krakjoe.ninja"; # start crawling this page | |
$workers = $argv[2] ?: 8; # start this number of threads | |
$limit = $argv[3] ?: 500; # stop at this number of unique pages | |
$timeout = $argv[4] ?: 3; # socket timeout for producers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \parallel\{Runtime, Channel}; | |
class ExecutorService { | |
public function __construct(int $workers, string $channel = __CLASS__, int $backlog = Channel::Infinite) { | |
if ($backlog == 0) { | |
/* | |
* execute() will block until a worker is ready | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- pcov.log 2019-01-20 14:28:58.444851609 +0100 | |
+++ xdebug.log 2019-01-20 14:25:27.607884120 +0100 | |
@@ -1,8 +1,8 @@ | |
-time php vendor/bin/phpunit --coverage-text --colors=never 2>&1 > pcov.log | |
+time php vendor/bin/phpunit --coverage-text --colors=never 2>&1 >xdebug.log | |
PHPUnit 7.5.2 by Sebastian Bergmann and contributors. | |
-Runtime: PHP 7.2.15-dev | |
+Runtime: PHP 7.2.15-dev with Xdebug 2.7.0beta2-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
usage: php document.php --ext name [--output document.txt] | |
*/ | |
function prototype(Reflector $reflector) { | |
$elements = []; | |
switch (get_class($reflector)) { | |
case "ReflectionClass": | |
if ($reflector->isFinal()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/opcache/Optimizer/block_pass.c b/ext/opcache/Optimizer/block_pass.c | |
index 77b02cc99f..38c2ecb124 100644 | |
--- a/ext/opcache/Optimizer/block_pass.c | |
+++ b/ext/opcache/Optimizer/block_pass.c | |
@@ -2,7 +2,7 @@ | |
+----------------------------------------------------------------------+ | |
| Zend OPcache | | |
+----------------------------------------------------------------------+ | |
- | Copyright (c) 1998-2016 The PHP Group | | |
+ | Copyright (c) 1998-2017 The PHP Group | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gdhelpers.c b/src/gdhelpers.c | |
index 20fff5c..a64278b 100644 | |
--- a/src/gdhelpers.c | |
+++ b/src/gdhelpers.c | |
@@ -14,6 +14,33 @@ | |
#define SEP_TEST (separators[*((unsigned char *) s)]) | |
+static inline void* gd_malloc_wrapper(size_t size) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Zend/tests/object_types/variance_in_param.phpt b/Zend/tests/object_types/variance_in_param.phpt | |
index bcc528e..cf28dd8 100644 | |
--- a/Zend/tests/object_types/variance_in_param.phpt | |
+++ b/Zend/tests/object_types/variance_in_param.phpt | |
@@ -15,6 +15,7 @@ class Bar extends Foo { | |
var_dump(new Bar); | |
?> | |
--EXPECTF-- | |
+Warning: Declaration of Bar::qux(Qux $qux) should be compatible with Foo::qux(object $object) in %s on line 10 | |
object(Bar)#%d (0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.random; | |
import andlabs.libui; | |
struct Star { | |
double X; | |
double Y; | |
double V; | |
bool F; | |
double G; |
NewerOlder