Re: [PHP-DEV] Request access to wiki for RFC on implementing missing pdo_sqlite features

2017-08-31 Thread BohwaZ/PHP

Hello, anyone? :)


Kia ora,

I'm requesting access to wiki to be able to write the RFC on
implementing missing pdo_sqlite features, following pull request
https://github.com/php/php-src/pull/2698 and discussion on this list.

My account on the wiki is "bohwaz".

Cheers.



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] BAD Benchmark Results for PHP Master 2017-08-30

2017-08-31 Thread lp_benchmark_robot
Results for project PHP master, build date 2017-08-30 19:23:35-07:00
commit: ce10a98
previous commit:0cdeb60
revision date:  2017-08-30 17:32:45+01:00
environment:Haswell-EP
cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, 
stepping 2, LLC 45 MB
mem:128 GB
os: CentOS 7.1
kernel: Linux 3.10.0-229.4.2.el7.x86_64

Baseline results were generated using release php-7.0.0, with hash 60fffd2 from
2015-12-01 04:16:47+00:00

---
benchmark   relative   change since   change since  
current rev run
std_dev*   last run   baseline  
   with PGO
---
:-|   Wordpress 4.2.2 cgi -T1  0.14%  0.39%  3.95%  
  9.28%
:-|   Drupal 7.36 cgi -T1  0.17%  0.67%  3.85%  
  5.87%
:-|   MediaWiki 1.23.9 cgi -T5000  0.07%  0.91%  4.75%  
  4.21%
:-|   bench.php cgi -T100  0.05% -0.07% 45.30%  
  0.05%
:-|  micro_bench.php cgi -T10  0.01% -0.90% 28.38%  
  3.26%
:-(  mandelbrot.php cgi -T100  0.02% -4.64% 42.74%  
  4.64%
---

* Relative Standard Deviation (Standard Deviation/Average)

If this is not displayed properly please visit our results page here: 
http://languagesperformance.intel.com/bad-benchmark-results-for-php-master-2017-08-30/

Note: Benchmark results for Wordpress, Drupal, MediaWiki are measured in
fetches/second while all others are measured in seconds.
More details on measurements methodology at: 
https://01.org/lp/documentation/php-environment-setup.

Subject Label Legend:
Attributes are determined based on the performance evolution of the workloads
compared to the previous measurement iteration.
NEUTRAL: performance did not change by more than 1% for any workload
GOOD: performance improved by more than 1% for at least one workload and there
is no regression greater than 1%
BAD: performance dropped by more than 1% for at least one workload and there is
no improvement greater than 1%
UGLY: performance improved by more than 1% for at least one workload and also
dropped by more than 1% for at least one workload


Our lab does a nightly source pull and build of the PHP project and measures
performance changes against the previous stable version and the previous nightly
measurement. This is provided as a service to the community so that quality
issues with current hardware can be identified quickly.

Intel technologies' features and benefits depend on system configuration and may
require enabled hardware, software or service activation. Performance varies
depending on system configuration.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] PHP 7.2.0 Release Candidate 1 released

2017-08-31 Thread Andrea Faulds

Sara Golemon wrote:

On Thu, Aug 31, 2017 at 7:07 AM, Remi Collet  wrote:

With this first Release Candidate, the PHP API and ABI should be
considered locked.  Significant behavioral changes should be avoided
using the same care applied to 7.1 and earlier branches. Consult RMs
before applying anything with even the slightest BC implications.
Please test it carefully, and report any bugs in the bug system.


Read. My. Lips.
No. New. Features.



But Sara! This feature is /special/!

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] PHP 7.2.0 Release Candidate 1 released

2017-08-31 Thread Sara Golemon
On Thu, Aug 31, 2017 at 7:07 AM, Remi Collet  wrote:
> With this first Release Candidate, the PHP API and ABI should be
> considered locked.  Significant behavioral changes should be avoided
> using the same care applied to 7.1 and earlier branches. Consult RMs
> before applying anything with even the slightest BC implications.
> Please test it carefully, and report any bugs in the bug system.
>
Read. My. Lips.
No. New. Features.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] add Fiber (sackful coroutine) support

2017-08-31 Thread Haitao Lv
Hi, All,

The generator has been introduced in PHP 5.5. And we can it pause a function 
execution.
With these feature, we can schedule multi io task in userland without blocking.

More details can be found at [Nikic].

And there is also some asynchronous frameworks like [AMP], which allow 
programer to 
code like blocking, but run asynchronously.

However, like python's generator, lua's coroutine, javascript's async/await, 
php's
generator also is a stackless coroutine implementation. We cannot pause a 
function call
in it's sub function call. This is the reason that frameworks like [AMP] has 
many wrapper,
is hard to understand, and almost impossible to be used to implement real but 
complex system.

So I propose to introduce the sackful coroutine, aka Fiber, support for PHP. 
And the possible
API like this,

>  function foo($a)
> {
>   $b = await $a + 1;
>   echo $b;
> }
> 
> function bar()
> {
>   foo();
> }
> 
> $f = new Fiber(function($a) {
>   bar($a);
>   return 3;
> });
> 
> $c = $f->resume(1);
> // 1 will be passed to lambda, then bar
> // bar call foo, and the **await** in foo paused this execution
> // and make the return value of resume as $a + 1
> // so $c is 2
> 
> $c = $f->resume(3);
> // resume the execution by previous await, and the $b in foo
> // will be assigned a value of 3
> // so foo echo 3 and return and then the lambda return
> // and the resume got a return value of 3. so $c is 3.

So the Fiber API is a little like the Generator API, but is more simple yet 
powerful. So there
is no need to distinct $generator->current(), $generator->send(), and 
$generator->getReturn().

I made a more complex example at [FIREPHP].And I also make a [PR] for comment.

All comment are welcome. Thanks.

[Nikic] 
https://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html
[AMP] http://amphp.org/
[FIREPHP] https://github.com/fiberphp/fiber-core/blob/master/app.php
[PR] https://github.com/php/php-src/pull/2723


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] PHP 7.0.23 is available

2017-08-31 Thread Anatol Belski
Hi,

The PHP development team announces the immediate availability of PHP 7.0.23. 
Several bugs have been fixed. All PHP 7.0 users are encouraged to upgrade to 
this version.

For source downloads of PHP 7.0.23 please visit our downloads page:
http://www.php.net/downloads.php

Windows binaries can be found on http://windows.php.net/download/

The list of changes is recorded in the ChangeLog:
http://www.php.net/ChangeLog-7.php#7.0.23

Regards,
Anatol Belski and Ferenc Kovacs


P.S. Below is the verification information for the downloads.

php-7.0.23.tar.bz2
SHA256 hash: 6fe94cefc7d2c60ee2c1648b977beed756ad9cd0a7e4ea8bb8cf521d9355a09c
PGP signature:
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAABAgAGBQJZpUgyAAoJELyqMOqcDVdj5VEH/R1sfGitkC83RNmtt6dt9lz9
pp5oQN9jRSjiYjhpIM8d9NsJUMR/J1Bt+NcmEXRNkJXTg2U03fcQpQaqotRwXBWg
sChejifmwiWiW7ee9fs0u8jNTH3cJOAn6T0Zwjw1y1o4nbaAZguHlXrkvgHx6zcD
tpCL45gz2s0DulqUWGWxXt/U14XYPVTQIsnDSAa9fJ9Xp64nNFsO/oVm1EVH2h7/
VQzh1He+tWD4cxnbAwvofOP/hHl5BQk7VcW8T88eYzBOgtTZsZDE3cxLaBU2yvCD
XY126aSHX090kcOspCoxEs9DuGvp+BiO8wnvFgC7avGpJSze2CGq4SYiBk2/10E=
=aRBP
-END PGP SIGNATURE-


php-7.0.23.tar.gz
SHA256 hash: d511089ecaf386f3ab752efba76558c03558afa6b5b3fe71d84881c76644b466
PGP signature:
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAABAgAGBQJZpUg2AAoJELyqMOqcDVdjtzAH/0X92w7aR+VtpzMu26n7/Rkd
wZfHaEEubV49HV5e5Wa8Dn18Z/ldXVSzlNb613CPytdtV0kH9wstwLX8bSK1S3M6
pu4LskBnvDE89GG18NJxCPqBbsqSjGu2q46Vno6EpOHvXxcJlL68hOupfz6Z6bHL
v4L+2Melu0Re+AaCuTw+mZlz8lszBbRg7+gIQOn/K6M+wFbM4wUBpOQ3Ru0LcHe1
ppObWnoOA5RKSB52QLP/BcahGrdgrWwEmnBoGflsn70U8PPbXbWWAJwvpFDgNIXI
X6dF5m9ke+pldC+2FAp9C30NQlQk9MC10rC61OzVHjQO/7k0RgtN0KCSOmM3IUk=
=ZWbI
-END PGP SIGNATURE-


php-7.0.23.tar.xz
SHA256 hash: 8e526e3551a58e00c8055fa4a72804aa1bd3ee1c0411b25bf1504cc4992609df
PGP signature:
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAABAgAGBQJZpUg5AAoJELyqMOqcDVdjuykH/RGhKqGb4KoQfrbpcBwZY+2f
RxiCkTNc0KKahXC1eILzXDh3PIuw+LZKoTDETk/HzIbZTAcc9mhjQwB2o8JZli5i
tv/JmrYLWnVkRSgqJcOCmS5OvmI7mgM8a/w+5LE/3GFgBnRUu7SxwY0oETThx3Lr
oPKf+5ZB8XYHdPknfOjeNpksmDmYmszlPKWM+6vWNnAU9DcOtcE6h3bJYelUg7uf
YsZqS6gyVOrg/OmB/KXFU0eKO4N2BtXzcSXWTotwrlBmRk/q2hw8jLnYRqvAMQMi
knUUtLgc6XRBW7HzbEsDlllaCSbGPm3iUqpyTf7+tABm2rRceWLK4qb2fcYH4YQ=
=nkFO
-END PGP SIGNATURE-


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] PHP 7.2.0 Release Candidate 1 released

2017-08-31 Thread Remi Collet
The first Releace Candidate for 7.2.0 was just released
and can be downloaded from:

https://downloads.php.net/~remi/

Or using the git tag: php-7.2.0RC1

The Windows binaries are available at: http://windows.php.net/qa/


THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!


With this first Release Candidate, the PHP API and ABI should be
considered locked.  Significant behavioral changes should be avoided
using the same care applied to 7.1 and earlier branches. Consult RMs
before applying anything with even the slightest BC implications.
Please test it carefully, and report any bugs in the bug system.

The second Release Candidate will be tagged on Tuesday September 12th
and released on Thursday September 14th.

Hash Values and GPG signatures can be found below.


Thank you, and happy testing!


Sara & Remi




php-7.2.0RC1.tar.gz
SHA256 hash:
3cc1a0a0c2a69497dcdf5c4ca62a3996c0ff93963469a3ec61bf1f1c58ff5c94
PGP signature:
-BEGIN PGP SIGNATURE-

iQIcBAABAgAGBQJZpUtxAAoJENyf+NPuWvJ/HWEQAKvi4ccXCpGrqZeqqHUaaoI8
9AKaA3a89MJBKYO8FIvYuXMKF3rpwXXGVPZ4Kb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q
TiErkbjholzKZsNHyf8dXRw3Xy+swKUoY8wLI7WEVV9RO+XMHBgQ55m+sw8AzOJX
U7gonA4iiY01H10KJ/A3RT2Wx+3wdzUpDv6IRAKtPoBKYWCdpNfyFvsVBMfrrmEt
X/vyd75t+i2lJgkAE7xQKO9J4gLu2YswLUhirDHDCAnVugmIVzeTT9ImviWMt3Je
O7zekfQSOHN/br1vPgzn
=mwh/
-END PGP SIGNATURE-

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php