Bump this to continue discussion of this RFC (
https://wiki.php.net/rfc/list_default_value).
In case some of you didn't follow it before. This RFC propose to allow set
default value in list() assignment:
list($a = 'default value') = $arr;
On 10 November 2015 at 11:14, reeze <re...@php.
Hi internals!
I'd like to open a discussion on the RFC to allow set default values for
list() assignment: https://wiki.php.net/rfc/list_default_value.
What is your idea?
Thanks.
--
Reeze Xia
http://reeze.cn
Hey Dan,
On 9 November 2015 at 23:24, Dan Ackroyd <dan...@basereality.com> wrote:
> Hi Reeze,
>
> On 9 November 2015 at 13:35, reeze <re...@php.net> wrote:
> > Hi internals!
> >
> > I'd like to open a discussion on the RFC to allow set default v
) =
This is proposed for the next PHP x, currently PHP 7.
--
Shawn McCool | Big Name
sh...@heybigname.com
heybigname.com
--
Reeze Xia
http://reeze.cn
Hi,
On 8 March 2015 at 00:41, Kalle Sommer Nielsen ka...@php.net wrote:
Hi
2015-03-07 16:51 GMT+01:00 reeze re...@php.net:
Hi internals,
I'd like to deprecate function: sizeof() [1][2], which is an alias of
count(). some people
expect it return the memory size of the variable
, it didn't remove the alias, but propose use use count()
instead.
listed in main function page only. It may reduce confusions hopefully.
That might helps.
Regards,
--
Yasuo Ohgaki
yohg...@ohgaki.net
--
Reeze Xia
http://reeze.cn
On 9 March 2015 at 06:44, Pierre Joye pierre@gmail.com wrote:
On Sun, Mar 8, 2015 at 2:51 AM, reeze re...@php.net wrote:
Hi internals,
I'd like to deprecate function: sizeof() [1][2], which is an alias of
count(). some people
expect it return the memory size of the variable
/php-src/pull/1161
[3] http://stackoverflow.com/questions/3974385/php-array-count-or-sizeof
--
Reeze Xia
http://reeze.cn
. There aren't
unpredictable effects and misunderstanding with interpretation of source
code.
+1
--
Reeze Xia
http://reeze.cn
://github.com/mathnerd3141/doeqs_new/blob/ba23c478a0c819dc6b2f8f96f9df35d16505eed2/errors.php#L20
2.
https://github.com/benfinke/cargo_plane/blob/4911bc6a91d8345aa62c81fb52c8bed9d216c44e/Splunk/Util.php#L89
Request: https://bugs.php.net/bug.php?id=45235
--
Reeze Xia
http://reeze.cn
Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
Reeze Xia
http://reeze.cn
Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
Reeze Xia
http://reeze.cn
://www.php.net/unsub.php
--
Reeze Xia
http://reeze.cn
Please have a read over it. I think this would be a simple, yet useful
addition.
Thanks!
--
Andrea Faulds
http://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
Reeze Xia
http://reeze.cn
.
Thanks for your questions and your vote :)
--
Reeze Xia
http://reeze.cn
differently.
Yes I should use ##__VA_ARGS__ instead.
Thanks. Dmitry.
On Wed, Feb 11, 2015 at 11:41 AM, Xinchen Hui larue...@php.net wrote:
Hey:
On Wed, Feb 11, 2015 at 4:35 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote:
Hi all,
On Wed, Feb 11, 2015 at 5:21 PM, reeze re...@php.net wrote
, ...)*
*+{*
*+* *va_list args;*
*+*
*+* *va_start(args, format);*
*+* *php_error_docref0(NULL, type, format, args);*
*+* *va_end(args);*
*+}*
*+*
*+#define php_error_doc php_error_doc0*
*+*
Thanks. Dmitry.
On Wed, Feb 11, 2015 at 6:01 PM, reeze re...@php.net
and the extension maintainer's easier.
Another option would be just update the php_error_docref() macro to remove
the docref parameter, default to NULL but not add a new macro.
What do you think about it?
[1] https://github.com/php/php-src/pull/1075
--
Reeze Xia
http://reeze.cn
PS:
Github search result:
https://github.com/search?l=cq=php_error_docrefref=searchresultstype=Codeutf8=%E2%9C%93
It seems that no one need the docref at all.
On 11 February 2015 at 16:07, reeze re...@php.net wrote:
Hi all,
There are a lot of code use php_error_docref() macro
TSRML_CC macro, it is hard to maintain.
On 11 February 2015 at 16:16, Xinchen Hui larue...@php.net wrote:
On Wed, Feb 11, 2015 at 4:07 PM, reeze re...@php.net wrote:
Hi all,
There are a lot of code use php_error_docref() macro, the first
parameter
mostly is NULL, before PHP7, it looks
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
Reeze Xia
http://reeze.cn
Thanks a lot!
On 5 February 2015 at 16:03, Dmitry Stogov dmi...@zend.com wrote:
merged into master with the proposed changes.
Thanks. Dmitry.
On Thu, Feb 5, 2015 at 9:37 AM, reeze re...@php.net wrote:
Hi Dmitry,
On 5 February 2015 at 14:31, Dmitry Stogov dmi...@zend.com wrote:
Hi
Hi Dmitry,
On 5 February 2015 at 14:31, Dmitry Stogov dmi...@zend.com wrote:
Hi reeze,
The original return type patch was designed to support internal
functions as well.
So I think, this is just a good addition.
Yes :)
Only one note:
I'm not sure, if we need the addition check
Hi all,
RFC: https://wiki.php.net/rfc/internal_function_return_types
I noticed that return types RFC[1] didn't support internal functions, I
just open a PR[2] to support it.
There are some open issues we can discuss:
1. User land return types didn't stop the php, the current implementation
PS:
There is no enough unit tests to cover all of the branches, if we want then
I have to add a bunch of for testing functions and classes in ZEND_DEBUG,
what is the better way?
On 5 February 2015 at 11:54, reeze re...@php.net wrote:
Hi all,
RFC: https://wiki.php.net/rfc
The name seems ambiguous , how about require_script/once to match
do_sth pattern?
On 5 February 2015 at 10:03, Yasuo Ohgaki yohg...@ohgaki.net wrote:
Hi all,
On Thu, Feb 5, 2015 at 10:53 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote:
I would like to discuss my must have it in PHP 7 item.
Hi Cesar,
On 4 February 2015 at 07:26, Cesar Rodas ce...@rodas.me wrote:
Hi Guys,
I have a doubt, is it efficient include/require files from a source
different than the real file system a stream wrapper class? My
question is, would the op-code cache work as it would when reading a
file
Yeah, seem other want it it too, so I just updated the PR to allow the
first four parameters been passed by reference.
On 23 January 2015 at 16:23, Nicolas Grekas nicolas.grekas+...@gmail.com
wrote:
function myErrorHandler($errno, $errstr, $errfile, $errline) {...}
It would be awesome to
I like the idea, we have the similar scenario, we need to print request log
id to the log,
so I just made a PR to implement this:
https://github.com/php/php-src/pull/1018 the PR is against master,
but I think this could also been in 5.5.
On 22 January 2015 at 18:41, Yasuo Ohgaki
it.
---
[1] https://github.com/reeze/php-ext-embed
On 4 January 2015 at 19:52, Benjamin Eberlei kont...@beberlei.de wrote:
Hey everyone,
I want to open discussion on my RFC to strengthen the ability of extensions
to provide functionality to developers in both C **and** PHP code.
For this extensions
opcache didn't
allow streams except `file://` and `phar://`, @François created a RFC to
support it [1], if that was accepted, it should work with full speed :)
--
[1] https://github.com/php/php-src/pull/976/files
On 4 January 2015 at 21:02, Benjamin Eberlei kont...@beberlei.de wrote:
Hey reeze
+1 for this PR.
On 4 January 2015 at 09:36, François Laupretre franc...@tekwire.net wrote:
Hi,
I just wrote this RFC to propose a clean way for opcode caches to decide if
a given URI is cacheable or not :
https://wiki.php.net/rfc/streams-is-cacheable
Please comment.
Regards
François
Won't `$obj1 === $obj2` work for you ?
On 28 November 2014 at 09:13, Bostjan Skufca bost...@a2o.si wrote:
Hello everyone,
this is a proposal to add new function to PHP core: spl_object_id()
The story:
Recently I was debugging some larger libraries and sorely missed a function
Big +1 for me. This is good a idea to make contributors' work easier.
On 31 October 2014 05:57, John Bafford jbaff...@zort.net wrote:
Hi,
I would like to propose the creation of a team to triage the pull requests
on GitHub, to help ensure that the pull requests are handled in a timely
ER r q
--
Reeze
Sent with sparrow
在 2013年6月12日星期三,13:05,Michael Wallner 写道:
On 10 June 2013 20:33, Nikita Popov nikita@gmail.com wrote:
Hi internals!
We just published some rather extensive documentation on internal object
orientation:
http://www.phpinternalsbook.com
Hi Nikita,
I got some test failure with the patch, one test failure and some memory
leaks.
see: https://gist.github.com/reeze/5101596
--
reeze | reeze.cn
已使用 Sparrow (http://www.sparrowmailapp.com/?sig)
在 2013年3月7日星期四,上午1:28,Dmitry Stogov 写道:
On Wed, Mar 6, 2013 at 9:16 PM, Nikita
+1 s, Switch to a new opcode cacher is much easier than update PHP,
and ZO+ is already compatible with 5.5. we could use ZO+ as soon as possible.
--
reeze | reeze.cn
已使用 Sparrow (http://www.sparrowmailapp.com/?sig)
在 2013年3月2日星期六,下午4:43,Ferenc Kovacs 写道:
On Sat, Mar 2, 2013 at 9:39 AM
在 2012年8月4日星期六,上午6:40,Andrew Faulds 写道:
On 03/08/12 23:36, Etienne Kneuss wrote:
On Mon, Jul 30, 2012 at 7:31 PM, Gustavo Lopes glo...@nebm.ist.utl.pt
(mailto:glo...@nebm.ist.utl.pt) wrote:
https://wiki.php.net/rfc/incompat_ctx
An RFC for deprecating and removing $this from
Hi,
在 2012年7月25日星期三,下午1:27,Laruence 写道:
Hi:
is there any really usage? I didn't see before. I don't think every
Yes, eg:
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/EntityRepository.php#L24
it could be:
from Doctrine\Common\Collections use ExpressionBuilder,
code should be self-explained.
More info could be found at the RFC page and the patch.
RFC: https://wiki.php.net/rfc/namespace-importing-with-from
PATCH : https://github.com/reeze/php-src/compare/rfc-from-use
Any Opinion, suggestion, improvement will be much appreciated.
Thanks
--
reeze
Hi Andrew,
在 2012年7月24日星期二,下午11:39,Andrew Faulds 写道:
On 24/07/12 16:35, Reeze wrote:
Hi, internals,
I'm proposing a improvement to namespace importing. when using 'use'
statement to import
many classes, we have to duplicate many times even we are importing from
the same namespace
. And this
No, we can not import namespace directly for now :
?php
namespace A {
class B {}
}
namespace {
use A;
var_dump(new B());
}
Warning: The use statement with non-compound name 'A' has no effect in
/Users/reeze/Opensource/php-test/php-src-master/a.php on line 7
if we wan
Hi,
在 2012年7月19日星期四,下午6:45,Rune Kaagaard 写道:
+1 for the consistency of it. It's surprising that:
if ($foo)
return $bar;
else
return 42;
works and:
try
maybe_dangerous();
catch(Dynamite $e)
handle_error();
There is no condition after `try`, it's really hard to read
Hi,
I guess /usr/local/bin is writable. then:
which version of php and autoconf? it may set the EXEEXT=.dSYM
if so /usr/local/bin/php may becomes /usr/local/bin/php.dSYM
will you take a look at the generated Makefile is there any value of this
variable EXEEXT = ?
--
reeze | reeze.cn
look forward your futhur work!
make test takes really long time,
with valgrind is almost unacceptable。
--
Reeze
Sent from my iphone
On 2012年5月3日Thursday at 19:42, Olivier Doucet wrote:
Hi,
2012/5/3 zoe slattery aparac...@gmail.com:
Hi
Some years ago (in 2009) Stefan Priebsch
patch attached request for comment.
Finally, What do you guys think about it?
Thanks.
Best,
--
reeze | simpie.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
, loaded class will be useful, since it
will be used later.
if loaded success everyone is happy.
On 1 May 2012 20:25, Laruence larue...@php.net wrote:
On Tue, May 1, 2012 at 8:03 PM, reeze reeze@gmail.com wrote:
Hi internals:
danko reported this bug#61422: Lack of autoload on type
misrewind and gives misleading
notice when manipulating empty/moved to end array
https://github.com/php/php-src/pull/38 thanks @nikic @cataphract's great
suggestions, will someone take a look, do I still have to improve it?
Thank you!
--
reeze | reeze.cn
--
PHP Internals - PHP Runtime Development
If just for exception recovery how about implement ruby's retry ?
http://www.tutorialspoint.com/ruby/ruby_loops.htm Ruby retry statement section.
在 2012年4月2日星期一,下午8:44,Rasmus Schultz 写道:
I was just reading about the new async/await keywords in C# 5.0, and while
this has no particular
在 2012年3月31日星期六,下午3:31,Stas Malyshev 写道:
On 3/30/12 7:27 PM, Yasuo Ohgaki wrote:
Hi Stas,
Just FYI.
Following bugs are needed to be fixed before 5.4.1, I think.
https://bugs.php.net/bug.php?id=61526
Which is right, doc or code?
Both. The parameter means that first argument
Hi,
From the NEWS file :
+ . Fixed bug #55475 (is_a() triggers autoloader, new optional 3rd argument to
+ is_a and is_subclass_of). (alan_k)
The 3rd argument is add to let user choose autoload or not, but not a string or
not.
so maybe we can make it more clear.
--
reeze
已使用 Sparrow (http
在 2012年3月31日星期六,下午4:35,Stas Malyshev 写道:
Hi!
If is set to false does it means the first parameter can't be string?
It can. But it won't be seen as a class name, but rather as a string,
that is not an object that is an instance of a subclass of anything, so
it will return false.
On 2011年4月26日星期二 at 上午10:31, David Muir wrote:
On 26/04/11 09:37, Ben Schmidt wrote:
Back in PHP4 it was the only way to simulate an static call, but
nowadays it really don't make sense at all.
class Foo {
static function toString(Bar $bar) {
return 'Foo::toString($bar)';
Hi,
I am not sure it's the right place to discuss this. someday I found I call a
static method _instancely_.
the method is just a helper method when reviewing my code. I know I do the
wrong thing, but PHP doesn't
complain about it. then I do some tests like below:
?php
error_reporting(E_ALL ^
54 matches
Mail list logo