+1
On Jan 30, 2015 4:15 PM, Ferenc Kovacs tyr...@gmail.com wrote:
On Fri, Jan 30, 2015 at 3:04 PM, Xinchen Hui larue...@php.net wrote:
Hey:
there already are more than 2 people tell me they are trying to
play with PHP7, but turns out they are playing with PHPNG branch(since
we used
On Fri, Jan 30, 2015 at 3:53 AM, S.A.N ua.san.a...@gmail.com wrote:
The reason for creating circular references, usually due to the need to
bind objects.
But this relationship can often be obtained from the context of the call.
It will be very convenient to have a keyword that will return
On 30/01/15 17:45, Lester Caine wrote:
On 30/01/15 14:22, Michael Wallner wrote:
- default etag hash algo for dynamic response bodies has changed to
sha1 from crc32 and cannot be changed through an INI setting
etags on dynamic content are, well, subject to change anyway,
so I
2015-01-30 18:07 GMT+03:00 Andrea Faulds a...@ajf.me:
This approach wouldn’t solve the problem you’re describing. You *still*
need to produce a new request object, because the request object is
immutable. The mutability of its *properties* isn’t the issue.
Thank you for this answer.
It can be a good idea to pass an object to the const parameter in php4
style (copy on write). Then original object will be untouched.
The same will be for local objects with const flag.
No reassignments. Always pass a copy (like with arrays now)
пятница, 30 января 2015 г. пользователь Andrea
On 01/30/2015 05:06 AM, Rasmus Lerdorf wrote:
On 01/30/2015 02:17 AM, Ralf Becker wrote:
Tried installing EGroupware (www.egroupware.org) on your vagrant box.
Unfortunately our installation check, checking for various requirements,
immediately triggers a segmentation fault :-(
==
Hi,
This accidentally went off-list, forwarding for everyone else’s sake.
Begin forwarded message:
Date: 30 January 2015 16:01:43 GMT
Subject: Re: [PHP-DEV] [RFC] Immutable variables and objects
From: Alexander Lisachenko lisachenko...@gmail.com
To: Andrea Faulds a...@ajf.me
On 1/30/15 4:08 AM, Tony Marston wrote:
Pavel Kouril wrote in message
news:cab6yzuzymbaa5i3f9nsvebg2b7yjvo4ryvpy-eac78rsojx...@mail.gmail.com...
On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner m...@php.net wrote:
Hi,
snip
Hello,
just one observation - would be the name of the classes
On 30/01/15 14:22, Michael Wallner wrote:
- default etag hash algo for dynamic response bodies has changed to
sha1 from crc32 and cannot be changed through an INI setting
etags on dynamic content are, well, subject to change anyway,
so I don't see major troubles
I presume
On 30/01/15 20:19, Stanislav Malyshev wrote:
Hi!
Just because that most of the code YOU have seen uses CamelCase does not
mean that CamelCase is the standard. I programmed in other languages for
over 20 years before I switched to PHP, and in those languages the standard
was snake_case. That
Hi!
does this indicate any problems with PHP?
No.
That said, it may make sense to put a cap on gethostbyname() argument as
a public service, if we can find a good limit. IIRC, there are limits on
both FQDN and hostname component lengths, so if we check for these
limits, we may add protection
Hi!
What I want to discuss is true immutability flag for variables and
parameters. There are a lot of languages that use final or const
keywords to prevent modification of variables. We can use this approach by
extending language syntax as following:
Most of the languages that use final and
Hi Dan,
On Fri, Jan 30, 2015 at 6:38 PM, Dan Ackroyd dan...@basereality.com wrote:
On 21 January 2015 at 04:39, Thomas Bley ma...@thomasbley.de wrote:
In userland it is sometimes necessary to extend PHP's notices/warnings
with additional information (e.g. username from session, stack trace,
Hi Dan,
On Fri, Jan 30, 2015 at 6:38 PM, Dan Ackroyd dan...@basereality.com wrote:
Why can't you just use in the error handler function to write the
exact message you want?
http://php.net/manual/en/function.error-log.php
Forgot to mention important part.
It's perfectly valid to use
On 30/01/2015 18:42, Robert Williams wrote:
% php -r '$e=0;for($i=0;$i2500;$i++){$e=0$e;} gethostbyname($e);’
What’s not being discussed is how it works. From the naive viewpoint of a PHP
end-user, I’d expect this one-liner to have the same effect:
% php -r '$e=0$e; gethostbyname($e);’
But
On 30 January 2015 at 19:05, Patrick Schaaf p...@bof.de wrote:
Am 30.01.2015 19:43 schrieb Robert Williams rewilli...@thesba.com:
% php -r '$e=0;for($i=0;$i2500;$i++){$e=0$e;} gethostbyname($e);’
What a funny way to say gethostbyname(str_repeat(0, 2501));
does this indicate any problems
Am 30.01.2015 20:09 schrieb Leigh lei...@gmail.com:
Well, I guess in theory we should be limiting the size of input to
gethostbyname to 255 characters.
Yeah, but in theory the C library gethostbyname() should do the same...
There will be a lot of things that could be checked up-front instead
On Jan 30, 2015, at 12:05, Patrick Schaaf p...@bof.demailto:p...@bof.de
wrote:
% php -r '$e=0;for($i=0;$i2500;$i++){$e=0$e;} gethostbyname($e);’
What a funny way to say gethostbyname(str_repeat(0, 2501));
Wow, I somehow missed the interpolation of $e into the value… self-slap.
Guess I was too
Hi Stas!
On 30/01/15 20:10, Stanislav Malyshev wrote:
Hi!
I’ve rewritten the RFC for pecl_http and hopefully addressed most of the
things mentioned previously.
Thank you, Michael, this is much better!
I would still like to hear more about 2 extensions, especially about
raphf - it
A PHP one-liner is being bandied about as one test of the recently discovered
Ghost vulnerability in gethostbyname(). Taken from:
http://ma.ttias.be/quick-tests-ghost-gethostbyname-vulnerability-cve-2015-0235/
Here it is:
% php -r '$e=0;for($i=0;$i2500;$i++){$e=0$e;} gethostbyname($e);’
Hi!
Just because that most of the code YOU have seen uses CamelCase does not
mean that CamelCase is the standard. I programmed in other languages for
over 20 years before I switched to PHP, and in those languages the standard
was snake_case. That is the standard I still use, and I will object
On 30/01/2015 13:07, Alexander Lisachenko wrote:
What is wrong here? Emulated immutability. All methods will create a
separate instance of request, so
$baseRequest-withUri()-withMethod()-withHeader()-withBody() will create
total 5 object instances. It's a memory overhead and time consumption for
Hey,
I've been trying to figure out the design decision behind why the default
value of session.gc_maxlifetime is 1440 seconds (24 minutes)?
Does anyone know or have any good sources?
Best regards,
Markus
Hi!
I’ve rewritten the RFC for pecl_http and hopefully addressed most of the
things mentioned previously.
Thank you, Michael, this is much better!
I would still like to hear more about 2 extensions, especially about
raphf - it seems to be some framework for handling persistent resources,
but
Am 30.01.2015 19:43 schrieb Robert Williams rewilli...@thesba.com:
% php -r '$e=0;for($i=0;$i2500;$i++){$e=0$e;} gethostbyname($e);’
What a funny way to say gethostbyname(str_repeat(0, 2501));
does this indicate any problems with PHP?
No.
best regards
Patrick
Hi,
After a period of research along with part of the PHP community I'd
like to present this RFC which aims to improve PHP namespaces.
The RFC: https://wiki.php.net/rfc/group_use_declarations
Along with its pull request: https://github.com/php/php-src/pull/1005
Needless to say, I'm open to
Hi all,
This is the RFC for INI set/get alias function deprecation.
https://wiki.php.net/rfc/deprecate_ini_set_get_aliases
Open issue is exception. Almost all aliases should be deprecated, but there
may
be exceptions. I hope everyone agrees to deprecation by document at least.
Thank you
Hi all,
Current session module manages session data lazy manner.
session_regenerate_id() does not delete old session data and leave it
accessible undefined period. i.e. It survives as long as it's accessed
before expiration time.
This is security threat when attacker steal session ID.
On 28 Jan 2015, at 8:58 pm, Ralf Lang l...@b1-systems.de wrote:
On 28.01.2015 10:46, Tony Marston wrote:
Sebastian Bergmann wrote in message news:54c75d9e.8090...@php.net...
Am 27.01.2015 um 10:00 schrieb Lester Caine:
composer has not even managed to get added to some distributions yet
On 31 January 2015 at 00:09, Marcio Almada marcio.w...@gmail.com wrote:
Hi,
After a period of research along with part of the PHP community I'd
like to present this RFC which aims to improve PHP namespaces.
The RFC: https://wiki.php.net/rfc/group_use_declarations
Along with its pull
Hi all,
On Sat, Jan 31, 2015 at 9:24 AM, David Muir davidkm...@gmail.com wrote:
Are we discussing the PEAR installer or everything related to PEAR?
I see no reason to include the PEAR installer by default. Heck, on most
distros it's already split out into a separate package.
If I already
Hi Markus,
On Sat, Jan 31, 2015 at 4:02 AM, Markus Amalthea Magnuson
markus.magnu...@gmail.com wrote:
I've been trying to figure out the design decision behind why the default
value of session.gc_maxlifetime is 1440 seconds (24 minutes)?
Does anyone know or have any good sources?
Because
Hi all,
This is the RFC for INI set/get alias function deprecation.
https://wiki.php.net/rfc/deprecate_ini_set_get_aliases
Open issue is exception. Almost all aliases should be deprecated, but there
may
be exceptions. I hope everyone agrees to deprecation by document at least.
Thank you for
There is something weird going on with PHP7 and the moodle_page class
and all its magic methods. It dies with a:
/var/www/moodle/blocks/navigation/block_navigation.php(223) : Notice -
Undefined property: moodle_page::$navigation
/var/www/moodle/blocks/navigation/block_navigation.php(223) : Fatal
This RFC adds a new method to ReflectionParameter to allow easy access
to a class name in a type hint, avoiding the need to actually load the
class and use `get_class()` or `::class`.
https://wiki.php.net/rfc/reflectionparameter-getclassname
Cheers.
--
PHP Internals - PHP Runtime Development
Hi,
Nikita got an idea about stopping changing of array/object internal
pointers even in forech by reference.
I've added an additional RFC section:
https://wiki.php.net/rfc/php7_foreach#additional_behavoir_change
Trivial implementation on top of the main patch:
On 31 Jan 2015 06:04, Rasmus Lerdorf ras...@lerdorf.com wrote:
There is something weird going on with PHP7 and the moodle_page class
and all its magic methods. It dies with a:
/var/www/moodle/blocks/navigation/block_navigation.php(223) : Notice -
Undefined property: moodle_page::$navigation
On 01/30/2015 11:13 PM, Michael Wallner wrote:
On 31 Jan 2015 06:04, Rasmus Lerdorf ras...@lerdorf.com
mailto:ras...@lerdorf.com wrote:
There is something weird going on with PHP7 and the moodle_page class
and all its magic methods. It dies with a:
On Fri, Jan 30, 2015 at 2:45 PM, Michael Wallner m...@php.net wrote:
On 29/01/15 21:25, Michael Wallner wrote:
On 29 01 2015, at 12:14, Michael Wallner m...@php.net
mailto:m...@php.net wrote:
Hi!
I’ve rewritten the RFC for pecl_http and hopefully addressed most of
the things
Hey:
there already are more than 2 people tell me they are trying to
play with PHP7, but turns out they are playing with PHPNG branch(since
we used to call it phpng).
as it already be merged into master. and there is also no tags against it.
maybe we should delete it?
any
On Fri, Jan 30, 2015 at 3:04 PM, Xinchen Hui larue...@php.net wrote:
Hey:
there already are more than 2 people tell me they are trying to
play with PHP7, but turns out they are playing with PHPNG branch(since
we used to call it phpng).
as it already be merged into master. and there
On 30/01/15 15:08, Ferenc Kovacs wrote:
On Fri, Jan 30, 2015 at 2:45 PM, Michael Wallner m...@php.net
mailto:m...@php.net wrote:
https://wiki.php.net/rfc/pecl_http
hi,
just a small question: what will be the upgrade path for existing
pecl_http users upgrading to 7.0?
I'd
Hi Alexander,
On 30 Jan 2015, at 13:07, Alexander Lisachenko lisachenko...@gmail.com
wrote:
Hello, internals!
Today I was looking at PSR-7 and discovered this part of code:
$body = new StringStream(json_encode(['tasks' = [
'Code',
'Coffee',
]]));;
$request = $baseRequest
Pavel Kouril wrote in message
news:cab6yzuzymbaa5i3f9nsvebg2b7yjvo4ryvpy-eac78rsojx...@mail.gmail.com...
On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner m...@php.net wrote:
Hi,
snip
Hello,
just one observation - would be the name of the classes and namespaces
stay the same after
On Fri, Jan 30, 2015 at 11:16:41AM +0100, Martin Keckeis wrote:
You might get more approval for: declare(strict=1);
I would like to see this to help catch typeos in variable names. If a
variable
is assigned and it does not already exist some sort of error would be
raised.
The
On Fri, Jan 30, 2015 at 02:16:20AM -0300, César Rodas wrote:
Hi!
I'm wondering if it would be a good idea to have a `strict` mode in PHP.
Many language have them and it is a good idea.
I think it should be a bit different in PHP, it should encourage the
following things:
- Avoid
On 21 January 2015 at 04:39, Thomas Bley ma...@thomasbley.de wrote:
In userland it is sometimes necessary to extend PHP's notices/warnings with
additional information (e.g. username from session, stack trace, etc.)
Why can't you just use in the error handler function to write the
exact message
Michael Wallner wrote in message
news:bd568277-5a74-4a66-ac5d-173da93fa...@php.net...
snip
I think PHP is, and should be, a language where you’re more successful in
getting things done, instead of having to do it right in one way only.
Well said! I couldn't agree more.
--
Tony Marston
Pavel Kouril wrote in message
news:cab6yzuzymbaa5i3f9nsvebg2b7yjvo4ryvpy-eac78rsojx...@mail.gmail.com...
On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner m...@php.net wrote:
Hi,
snip
Hello,
just one observation - would be the name of the classes and namespaces
stay the same after
You might get more approval for: declare(strict=1);
I would like to see this to help catch typeos in variable names. If a
variable
is assigned and it does not already exist some sort of error would be
raised.
The inspiration of this is from Perl where 'use strict' does this.
How to
On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner m...@php.net wrote:
Hi,
Discussion has been very low on this topic since it was proposed on
August 19th, so I just opened the vote on the RFC whether to add
pecl_http to the core. The vote will be open until about 12:00 UTC on
Friday,
Hi Dmitry,
Thank you for picking up on our proposal. RFC and patch look promising -
awesome work!
I am looking forward to it.
Ben
== Original ==
From: Dmitry Stogov dmi...@zend.com
To: PHP Internals internals@lists.php.net
Date: Fri, 30 Jan 2015 08:23:19 +0100
Subject:
Pavel Kouril wrote in message
news:cab6yzuzymbaa5i3f9nsvebg2b7yjvo4ryvpy-eac78rsojx...@mail.gmail.com...
On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner m...@php.net wrote:
Hi,
snip
Hello,
just one observation - would be the name of the classes and namespaces
stay the same after
On 01/30/2015 06:36 AM, Yasuo Ohgaki wrote:
Hi Cesar,
On Fri, Jan 30, 2015 at 2:16 PM, César Rodas ce...@rodas.me wrote:
I'm wondering if it would be a good idea to have a `strict` mode in PHP.
Many language have them and it is a good idea.
I think it should be a bit different in PHP,
Hi,
On 30 Jan 2015, at 09:14, Florian Anderiasch m...@anderiasch.de wrote:
On 01/30/2015 06:36 AM, Yasuo Ohgaki wrote:
Hi Cesar,
On Fri, Jan 30, 2015 at 2:16 PM, César Rodas ce...@rodas.me wrote:
I'm wondering if it would be a good idea to have a `strict` mode in PHP.
Many
Am 28.01.15 um 23:50 schrieb Rasmus Lerdorf:
As a follow-up to my PHP7 Homework post last week, here is a bit of
spoon-feeding for all you lurkers on this list.
https://atlas.hashicorp.com/rasmus/boxes/php7dev
The description there should be fairly self-explanatory. If you have a
computer
On Fri, Jan 30, 2015 at 11:23:19AM +0400, Dmitry Stogov wrote:
Hi,
I'd like to start discussion about fixing inconsistent foreach statement
behavior.
The implementation is almost done. It not only fixes inconsistencies in a
defined by RFC way but also improves performance in most usual
Hello, internals!
Today I was looking at PSR-7 and discovered this part of code:
$body = new StringStream(json_encode(['tasks' = [
'Code',
'Coffee',
]]));;
$request = $baseRequest
-withUri($uri-withPath('/tasks/user/' . $userId))
-withMethod('POST')
-withHeader('Content-Type'
On 01/30/2015 02:17 AM, Ralf Becker wrote:
Tried installing EGroupware (www.egroupware.org) on your vagrant box.
Unfortunately our installation check, checking for various requirements,
immediately triggers a segmentation fault :-(
== /var/log/nginx/php-fpm_error.log ==
[30-Jan-2015
On 29/01/15 21:25, Michael Wallner wrote:
On 29 01 2015, at 12:14, Michael Wallner m...@php.net
mailto:m...@php.net wrote:
Hi!
I’ve rewritten the RFC for pecl_http and hopefully addressed most of
the things mentioned previously.
I you still find anything lacking, please let me know, so
On Fri, Jan 30, 2015 at 8:23 AM, Dmitry Stogov dmi...@zend.com wrote:
Hi,
I'd like to start discussion about fixing inconsistent foreach statement
behavior.
The implementation is almost done. It not only fixes inconsistencies in a
defined by RFC way but also improves performance in most
On Fri, Jan 30, 2015 at 6:16 AM, César Rodas ce...@rodas.me wrote:
Hi!
I'm wondering if it would be a good idea to have a `strict` mode in PHP.
Many language have them and it is a good idea.
I think it should be a bit different in PHP, it should encourage the
following things:
- Avoid
That sentence was about foreach by value.
foreach by reference in your example will still work as expected :)
Thanks. Dmitry.
On Fri, Jan 30, 2015 at 2:07 PM, Alain Williams a...@phcomp.co.uk wrote:
On Fri, Jan 30, 2015 at 11:23:19AM +0400, Dmitry Stogov wrote:
Hi,
I'd like to start
Hi Tony,
On Fri, Jan 30, 2015 at 7:08 PM, Tony Marston tonymars...@hotmail.com
wrote:
Pavel Kouril wrote in message
news:cab6yzuzymbaa5i3f9nsvebg2b7yjvo4ryvpy-eac78rsojx...@mail.gmail.com...
On Wed, Jan 28, 2015 at 1:17 PM, Michael Wallner m...@php.net wrote:
Hi,
snip
Hello,
just
64 matches
Mail list logo