[PHP-DEV] PHP 5.4.31 RC1 Released for testing

2014-07-10 Thread Stas Malyshev
Hi!

The first RC of the PHP 5.4.31 was just released and can be
downloaded from:

http://downloads.php.net/stas/

The Windows binaries are available at

http://windows.php.net/qa/

This release contains a number of bugfixes.
For the list of bugfixes that you can target in your
testing, please refer to the NEWS file:

https://github.com/php/php-src/blob/php-5.4.31RC1/NEWS

Please test it carefully, and report any bugs in the bug system.

The release is planned in 2 weeks, July 24th, if no critical issues will
be discovered in the RC.

Regards,
Stas Malyshev
PHP 5.4 RM

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



Re: [PHP-DEV] Concurrency support for run-tests

2014-07-10 Thread Stas Malyshev
Hi!

> I added a CONCURRENCY_GROUP section, see
> https://github.com/m6w6/php-src/compare/parallel-run-tests?expand=1
> 
> If the next test to execute is in the same CONCURRENCY_GROUP as one 
> which is already/still running, it will be pushed back.
> 
> So tests with f.e. listening servers could use "port:" as 
> CONCURRENCY_GROUP or mysql tests could use "mysql:dbname", etc. As 
> example, I added the open_basedir tests to one group because they all  
> tamper around with the same subdirectories.

The problem there is that for a lot of tests the dependency is in common
include file (like server.inc or connect.inc) and extracting it into the
main file may be a bit time-consuming and also means we'd have to keep
the information in sync in many places at once.

> I also added a shuffle($test_files) if $concurrency is greater than 2 
> because that helps running the test suite concurrently actually. 
> Anybody got an idea why the tests are sorted at all?

To have a predictable order and reproducible test runs? Imagine we have
an inadvertent test dependency, in which test X fails after test Y is
run. If the order is stable, it is relatively easy to discover. If it is
random, reproducing the exact test alignment which caused the failure is
next to impossible.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/

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



[PHP-DEV] Re: VCS Account Request: hywan

2014-07-10 Thread PHP Group
VCS Account Approved: hywan approved by tyrael \o/


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



Re: [PHP-DEV] VCS Account Request: hywan

2014-07-10 Thread Ivan Enderlin @ Hoa

On 10/07/2014 12:57, Ferenc Kovacs wrote:




On Thu, Jul 10, 2014 at 12:01 PM, Ivan Enderlin @ Hoa 
mailto:ivan.ender...@hoa-project.net>> 
wrote:



On 10/07/2014 11:27, Ferenc Kovacs wrote:

On Thu, Jul 10, 2014 at 9:26 AM, Ivan Enderlin <
ivan.ender...@hoa-project.net
> wrote:

Developing the PHP runtime
Maintaining the documentation
Translating the documentation
Wiki access
Wiki votes



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


Hi,

Hi Ferenc :-),



I know that you are a reguler on internals (and that you
already have wiki
access and voting rights), but usually we require a couple of
patches
before handing out karma.

I already have rights on the wiki?


yeah, you have voting right already:
http://marc.info/?l=php-internals&m=133463696632604
you also used that to vote on previous rfcs:
https://wiki.php.net/todo/php54/vote
https://wiki.php.net/rfc/dvcs/vote


Some patches:
* https://github.com/php/php-src/commits?author=Hywan
* https://bugs.php.net/bug.php?id=55212 (patches applied by dsp)

Some bugs:
*

https://bugs.php.net/search.php?search_for=&boolean=0&limit=30&order_by=&direction=DESC&cmd=display&status=All&bug_type=All&project=All&php_os=&phpver=&cve_id=&assign=&author_email=ivan.enderlin%40hoa-project.net&bug_age=0&bug_updated=0


thanks!



I don't know how to list my contributions on the documentation
(around 20).


I suppose those are for the english documentation, right?

English and french.
I have made them anonymously since I didn't have an official account :-p.

--
Ivan Enderlin
Developer of Hoa
http://hoa-project.net/

PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis)
http://disc.univ-fcomte.fr/ and http://www.inria.fr/

Member of HTML and WebApps Working Group of W3C
http://w3.org/



Re: [PHP-DEV] VCS Account Request: hywan

2014-07-10 Thread Ferenc Kovacs
On Thu, Jul 10, 2014 at 12:01 PM, Ivan Enderlin @ Hoa <
ivan.ender...@hoa-project.net> wrote:

>
> On 10/07/2014 11:27, Ferenc Kovacs wrote:
>
>> On Thu, Jul 10, 2014 at 9:26 AM, Ivan Enderlin <
>> ivan.ender...@hoa-project.net> wrote:
>>
>>  Developing the PHP runtime
>>> Maintaining the documentation
>>> Translating the documentation
>>> Wiki access
>>> Wiki votes
>>>
>>>
>>>
>>> --
>>> PHP Internals - PHP Runtime Development Mailing List
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>  Hi,
>>
> Hi Ferenc :-),
>
>
>
>  I know that you are a reguler on internals (and that you already have wiki
>> access and voting rights), but usually we require a couple of patches
>> before handing out karma.
>>
> I already have rights on the wiki?
>

yeah, you have voting right already:
http://marc.info/?l=php-internals&m=133463696632604
you also used that to vote on previous rfcs:
https://wiki.php.net/todo/php54/vote
https://wiki.php.net/rfc/dvcs/vote


>
> Some patches:
> * https://github.com/php/php-src/commits?author=Hywan
> * https://bugs.php.net/bug.php?id=55212 (patches applied by dsp)
>
> Some bugs:
> * https://bugs.php.net/search.php?search_for=&boolean=0&;
> limit=30&order_by=&direction=DESC&cmd=display&status=All&
> bug_type=All&project=All&php_os=&phpver=&cve_id=&assign=&
> author_email=ivan.enderlin%40hoa-project.net&bug_age=0&bug_updated=0


thanks!


>
>
> I don't know how to list my contributions on the documentation (around 20).


I suppose those are for the english documentation, right?

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


Re: [PHP-DEV] VCS Account Request: hywan

2014-07-10 Thread Pierre Joye
On Thu, Jul 10, 2014 at 11:27 AM, Ferenc Kovacs  wrote:
> On Thu, Jul 10, 2014 at 9:26 AM, Ivan Enderlin <
> ivan.ender...@hoa-project.net> wrote:
>
>> Developing the PHP runtime
>> Maintaining the documentation
>> Translating the documentation
>> Wiki access
>> Wiki votes
>>
>>
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> Hi,
>
> I know that you are a reguler on internals (and that you already have wiki
> access and voting rights), but usually we require a couple of patches
> before handing out karma.
> I will gladly approve your account request if you could show me some prior
> patches/contribution. Of course I'm not the only one who can approve
> accounts, so there is a chance that somebody else will be less strict with
> the rules.

As I said on IRC, he already contributed many patches, docs or bugs reports.

Cheers,
-- 
Pierre

@pierrejoye | http://www.libgd.org

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



Re: [PHP-DEV] VCS Account Request: hywan

2014-07-10 Thread Ivan Enderlin @ Hoa


On 10/07/2014 11:27, Ferenc Kovacs wrote:

On Thu, Jul 10, 2014 at 9:26 AM, Ivan Enderlin <
ivan.ender...@hoa-project.net> wrote:


Developing the PHP runtime
Maintaining the documentation
Translating the documentation
Wiki access
Wiki votes



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



Hi,

Hi Ferenc :-),



I know that you are a reguler on internals (and that you already have wiki
access and voting rights), but usually we require a couple of patches
before handing out karma.

I already have rights on the wiki?

Some patches:
* https://github.com/php/php-src/commits?author=Hywan
* https://bugs.php.net/bug.php?id=55212 (patches applied by dsp)

Some bugs:
* 
https://bugs.php.net/search.php?search_for=&boolean=0&limit=30&order_by=&direction=DESC&cmd=display&status=All&bug_type=All&project=All&php_os=&phpver=&cve_id=&assign=&author_email=ivan.enderlin%40hoa-project.net&bug_age=0&bug_updated=0


I don't know how to list my contributions on the documentation (around 20).

--
Ivan Enderlin
Developer of Hoa
http://hoa-project.net/

PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis)
http://disc.univ-fcomte.fr/ and http://www.inria.fr/

Member of HTML and WebApps Working Group of W3C
http://w3.org/


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



Re: [PHP-DEV] VCS Account Request: hywan

2014-07-10 Thread Ferenc Kovacs
On Thu, Jul 10, 2014 at 9:26 AM, Ivan Enderlin <
ivan.ender...@hoa-project.net> wrote:

> Developing the PHP runtime
> Maintaining the documentation
> Translating the documentation
> Wiki access
> Wiki votes
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hi,

I know that you are a reguler on internals (and that you already have wiki
access and voting rights), but usually we require a couple of patches
before handing out karma.
I will gladly approve your account request if you could show me some prior
patches/contribution. Of course I'm not the only one who can approve
accounts, so there is a chance that somebody else will be less strict with
the rules.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


Re: [PHP-DEV] VCS Account Request: jslingerland

2014-07-10 Thread Ferenc Kovacs
On Wed, Jul 9, 2014 at 9:32 PM, Justin Slingerland  wrote:

> Maintaining an official, bundled PHP extension
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hi,

which extension are you referring to?

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


Re: [PHP-DEV] Implemented fallocate() syscall in streams

2014-07-10 Thread Ivan Enderlin @ Hoa

On 10/07/2014 11:13, Julien Pauli wrote:

The difference between ftruncate and fallocate is meaningless in userland.

If `fallocate` is proposed in the user-land, then it will be logical to have
it in the stream wrapper API. That's it :-).

I admit that it would be nice for consistency, however I wonder how
users will interpret the difference between ftruncate and fallocate.
Users will interpret exactly what the documentation says ;-). Since PHP 
is a scripting language, it is just a collection of cross-platform 
bindings (on the top of C APIs in the case of php-src). Some bindings 
are just more advanced ones than others. That's all. Someone will be 
likely to use `fallocate` some day, for sure.


Cheers.

--
Ivan Enderlin
Developer of Hoa
http://hoa-project.net/

PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis)
http://disc.univ-fcomte.fr/ and http://www.inria.fr/

Member of HTML and WebApps Working Group of W3C
http://w3.org/


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



Re: [PHP-DEV] Implemented fallocate() syscall in streams

2014-07-10 Thread Julien Pauli
On Tue, Jul 8, 2014 at 8:42 AM, Anatol Belski  wrote:
> Hi Julien,
>
> On Fri, June 13, 2014 16:20, Julien Pauli wrote:
>> Hi,
>>
>>
>> I just wrote a patch to add fallocate() syscall support for streams.
>> It relies on posix_fallocate(), so that it should support many Unixes.
>> Linux's got a specification with a fallocate() function, more powerful
>> than the posix call.
>>
>> fallocate() does write blocks to the underlying filesystem (not so many
>> are supported, but the ones not supported should proxy to ftruncate()) and
>> prevents sparse file creation whereas ftruncate() just updates inode
>> information, leading to possible future out of space errors.
>>
>> I got a POC showing the diffs between both calls here :
>> https://gist.github.com/jpauli/8afec7c4fc2b38f8ff27
>>
>>
>> I propose two APIs for PHP :
>> - One that adds a function : fallocate()
>> https://github.com/jpauli/php-src/tree/fallocate
>>
>>
>> - One that relies on ftruncate() , and adds a $use_fallocate
>> flag https://github.com/jpauli/php-src/tree/fallocate_flag
>>
>> Please, note that the latest proposal requires patches in different
>> extensions, as I changed a PHP_API function signature.
>>
>> I don't know if Windows can support that. Pierre, Anatol ? :-)
>>
>>
>> Tests are beeing written at the moment.
>>
>>
>> I didn't implement this is user stream handlers, as this really is a
>> low level implementation design that is kind of useless for usage in user
>> streams.
>>
>> Thoughts ?
>>
> I've found this code
>
> http://hg.mozilla.org/mozilla-central/file/3d846420a907/xpcom/glue/FileUtils.cpp#l61
>
> On windows there's no such syscalls. All the data is however buffered, as
> usual. An emulation could be of course implemented for Windows and other
> unsupported platforms. However it probably wouldn't mimic the exact
> behavior.
>
> But besides writing in blocks (fallocate) and fast truncating - there are
> some other useful things i see on the man page. I mean checking for the
> free space or all those flags like zeroing file space. Actually, maybe
> it'd be even more useful to put it into user space, maybe as normal
> functions? Otherwise, if you think it's too low level, one could go two
> ways - ether implement an emulation, or just use HAVE_FALLOCATE and a
> configure switch to activate it manually.
>
> Regards
>
> Anatol


Hey Anatol ;-)

Would you mind working with me finalizing this patch so that we could
merge it in master for a 5.7 and Next eventually ?
I'll update the PR next week with tests, then we'll be able to talk
about the implementation to use for crossplatform.

Thank you

Julien.P

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



Re: [PHP-DEV] Implemented fallocate() syscall in streams

2014-07-10 Thread Julien Pauli
On Tue, Jul 8, 2014 at 2:31 PM, Ivan Enderlin @ Hoa
 wrote:
>
> On 08/07/2014 11:08, Julien Pauli wrote:
>>
>> On Tue, Jul 8, 2014 at 9:37 AM, Ivan Enderlin @ Hoa
>>  wrote:
>>>
>>> On 13/06/2014 16:20, Julien Pauli wrote:

 - One that relies on ftruncate() , and adds a $use_fallocate
 flag https://github.com/jpauli/php-src/tree/fallocate_flag

 Please, note that the latest proposal requires patches in different
 extensions, as I changed a PHP_API function signature.

 I don't know if Windows can support that. Pierre, Anatol ? :-)

 Tests are beeing written at the moment.

 I didn't implement this is user stream handlers, as this really is a
 low level implementation design that is kind of useless for usage in
 user streams.

 Thoughts ?
>>>
>>> If the first one is used, please, consider exposing it on the user-land
>>> of
>>> stream wrappers (exemple: `stream_allocate`) if possible.
>>
>> I find it very useless as user stream already have the ftruncate
>> exposed to them.
>
> Hum no, this is very useful actually. A stream wrapper can be used to
> represent a file somewhere else, imagine `ntfs://`, `smb://`, `aws://`,
> `ftp://`, `afp://` etc.
>
>
>
>> The difference between ftruncate and fallocate is meaningless in userland.
>
> If `fallocate` is proposed in the user-land, then it will be logical to have
> it in the stream wrapper API. That's it :-).

I admit that it would be nice for consistency, however I wonder how
users will interpret the difference between ftruncate and fallocate.

Julien

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



Re: [PHP-DEV] Concurrency support for run-tests

2014-07-10 Thread Michael Wallner
On Wed 09 Jul 2014 22:00:49 CEST, Stas Malyshev wrote:
> Hi!
>
>> Having thought a bit about the subject, the heuristic I came up with was to
>> 1) do not run tests from the same extension in parallel, and 2) do not run
>> tests from certain extensions in parallel (e.g., mysql and pdo_mysql).

Heuristics are not reliable enough.

> How about making it a whitelist? For tests/extensions we know it's easy
> to paralellize (like ones not having external dependencies/servers/etc)
> simple script could whitelist a lot of them. For those more tricky, we
> could whitelist them gradually.
>

Whitelists are very limitating by nature, nobody will go and add tests 
to this whitelist, I think. I don't think a script is a viable way to 
whitelist tests (think about all those tests with with includes or 
config files, etc). Tests that fail due to concurrency will be easier 
noticed and added to a concurrency group or even better be fixed.

I added a CONCURRENCY_GROUP section, see
https://github.com/m6w6/php-src/compare/parallel-run-tests?expand=1

If the next test to execute is in the same CONCURRENCY_GROUP as one 
which is already/still running, it will be pushed back.

So tests with f.e. listening servers could use "port:" as 
CONCURRENCY_GROUP or mysql tests could use "mysql:dbname", etc. As 
example, I added the open_basedir tests to one group because they all  
tamper around with the same subdirectories.

I also added a shuffle($test_files) if $concurrency is greater than 2 
because that helps running the test suite concurrently actually. 
Anybody got an idea why the tests are sorted at all?

--
Regards,
Mike

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



[PHP-DEV] VCS Account Request: hywan

2014-07-10 Thread Ivan Enderlin
Developing the PHP runtime
Maintaining the documentation
Translating the documentation
Wiki access
Wiki votes



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