On Tue, 21 Jul 2015 15:01:06 +0400, Marco Pivetta ocram...@gmail.com
wrote:
Hello,
I was looking at DateTimeInterface in order to provide my own
implementation of it, when I hit this:
http://3v4l.org/8GvgO
Fatal error: DateTimeInterface can't be implemented by user classes
in
Is
On Wed, 25 Feb 2015 16:55:57 +0400, Dmitry Stogov dmi...@zend.com wrote:
On Wed, Feb 25, 2015 at 2:42 PM, Niktia Nefedov inefe...@gmail.com
wrote:
On Wed, 25 Feb 2015 16:30:32 +0400, Dmitry Stogov dmi...@zend.com
wrote:
anyone may tell, what this will print without running :)
main.php
On Wed, 25 Feb 2015 16:30:32 +0400, Dmitry Stogov dmi...@zend.com wrote:
anyone may tell, what this will print without running :)
main.php
?php
declare(strict_types=1)
include a.php;
include b.php;
var_dump(foo(5));
?
a.php
=
?php
declare(strict_types=0)
function foo(string $a):
On Wed, 25 Feb 2015 15:42:11 +0400, Niktia Nefedov inefe...@gmail.com
wrote:
On Wed, 25 Feb 2015 16:30:32 +0400, Dmitry Stogov dmi...@zend.com
wrote:
anyone may tell, what this will print without running :)
main.php
?php
declare(strict_types=1)
include a.php;
include b.php
On Wed, 25 Feb 2015 17:54:21 +0400, Dmitry Stogov dmi...@zend.com wrote:
The object on the call-site should remain to be an object (if it's not
passed by reference), however the called function will receive a string.
It works in PHP-5 and PHP-7. Nothing should be changed.
$ sapi/cli/php -r
Hey folks,
Currently argument unpacking can only be used once in a call and only
after all positional arguments were passed.
E.g. func(1, 2, 3, ...[4, 5]) is allowed, but func(...[1, 2, 3], 4,
...[5]) is not.
This makes it impossible to use this feature with some of the ext/std
functions
On Thu, 15 Jan 2015 14:30:48 +0300, Arvids Godjuks
arvids.godj...@gmail.com wrote:
Hello Andrea!
Consider what a mess was register_globals and problems it had, but at
least
it was a global setting. Declare will work on per file basis, and it will
end up even more of a mess.
I think PHP
On Sun, 21 Dec 2014 06:49:49 +0300, Xinchen Hui larue...@php.net wrote:
Hey:
On Sun, Dec 21, 2014 at 11:43 AM, Pierre Joye pierre@gmail.com
wrote:
On Dec 21, 2014 10:23 AM, Xinchen Hui larue...@php.net wrote:
Hey:
I am strongly against to remove ext/mysql
that means, all