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 wr
Hey Dan,
On 9 November 2015 at 23:24, Dan Ackroyd wrote:
> Hi Reeze,
>
> On 9 November 2015 at 13:35, reeze wrote:
> > Hi internals!
> >
> > I'd like to open a discussion on the RFC to allow set default values for
> > list() assignment: https
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
}
> }
>
>
> = Backwards Compatibility =
>
> Leave `$this->` available.
>
> = Proposed PHP Version(s) =
>
> 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
On 9 March 2015 at 06:44, Pierre Joye wrote:
> On Sun, Mar 8, 2015 at 2:51 AM, reeze 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
kept. If "Consistent function names" RFC passes, aliases will be
>
Yes, I think so, 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
Hi,
On 8 March 2015 at 00:41, Kalle Sommer Nielsen wrote:
> Hi
>
> 2015-03-07 16:51 GMT+01:00 reeze :
> > Hi internals,
> >
> > I'd like to deprecate function: sizeof() [1][2], which is an alias of
> > count(). some people
> > expect it return the
ub.com/php/php-src/pull/1161
[3] http://stackoverflow.com/questions/3974385/php-array-count-or-sizeof
--
Reeze Xia
http://reeze.cn
ecific code path (or bugs related to it).
> >
>
> I like this way, because it's more logical and readable. There aren't
> unpredictable effects and misunderstanding with interpretation of source
> code.
>
+1
--
Reeze Xia
http://reeze.cn
https://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
ere might be some AST level
optimizations, this not opcache's job too.
> >
> > thanks
> >
> > --
> > Xinchen Hui
> > @Laruence
> > http://www.laruence.com/
>
>
>
> --
> Xinchen Hui
> @Laruence
> http://www.laruence.com/
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Reeze Xia
http://reeze.cn
doesn't worth it.
>
> François
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Reeze Xia
http://reeze.cn
fc/void_return_type
>
> 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
f the empty() means if any one of them is empty then result is TRUE, the
advantage of it disappeared:
if (empty($a, $b, $c)) {
// you might want to check it again.
if (empty($a)) {
//blah blah.
} else if (empty($b)) {
}
}
>
> But that's just my opinion. :)
> --
> 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
have it added other than on a major version
> release.
>
> Thanks for your questions and your vote :)
>
--
Reeze Xia
http://reeze.cn
const char *format, ...)*
*+{*
*+* *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,
for that.
>
>
> also macros with __VA_ARGS__ may be not portable, s it should be
> implemented differently.
>
Yes I should use ##__VA_ARGS__ instead.
> Thanks. Dmitry.
>
>
>
> On Wed, Feb 11, 2015 at 11:41 AM, Xinchen Hui wrote:
>
>> Hey:
>>
>> On W
range TSRML_CC macro, it is hard to maintain.
On 11 February 2015 at 16:16, Xinchen Hui wrote:
> On Wed, Feb 11, 2015 at 4:07 PM, reeze wrote:
> > Hi all,
> > There are a lot of code use php_error_docref() macro, the first
> > parameter
> > mostly is
PS:
Github search result:
https://github.com/search?l=c&q=php_error_docref&ref=searchresults&type=Code&utf8=%E2%9C%93
It seems that no one need the docref at all.
On 11 February 2015 at 16:07, reeze wrote:
> Hi all,
> There are a lot of code use php_error_doc
ake code looks better 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
Z_STRLEN_P(key)+1, (void**)&ce_ptr) == SUCCESS) {
> + if ((func = zend_hash_find_ptr(ht, Z_STR_P(key))) != NULL) {
>
> Jan
>
> --
> 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 wrote:
> merged into master with the proposed changes.
>
> Thanks. Dmitry.
>
> On Thu, Feb 5, 2015 at 9:37 AM, reeze wrote:
>
>> Hi Dmitry,
>>
>> On 5 February 2015 at 14:31, Dmitry Stogov wrote:
&
Hi Dmitry,
On 5 February 2015 at 14:31, Dmitry Stogov 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
The name seems ambiguous , how about "require_script/once" to match
"do_sth" pattern?
On 5 February 2015 at 10:03, Yasuo Ohgaki wrote:
> Hi all,
>
> On Thu, Feb 5, 2015 at 10:53 AM, Yasuo Ohgaki wrote:
>
> > I would like to discuss my "must have it in PHP 7" item.
> >
> > PHP RFC: script() and
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 wrote:
> Hi all,
>
> RFC: https://wiki.ph
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
ra
Hi Cesar,
On 4 February 2015 at 07:26, Cesar Rodas 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 form the f
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
wrote:
> > function myErrorHandler($errno, &$errstr, $errfile, $errline) {...}
> >
>
> It would be awesome to also pass $errfile and
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 wrote:
> Hi Th
oblem 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 wrote:
> Hey reeze,
>
>
.
---
[1] https://github.com/reeze/php-ext-embed
On 4 January 2015 at 19:52, Benjamin Eberlei 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 exte
+1 for this PR.
On 4 January 2015 at 09:36, François Laupretre 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 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
> that
Big +1 for me. This is good a idea to make contributors' work easier.
On 31 October 2014 05:57, John Bafford 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
> manner. I am also
ER r q
--
Reeze
Sent with sparrow
在 2013年6月12日星期三,13:05,Michael Wallner 写道:
> On 10 June 2013 20:33, Nikita Popov wrote:
> > Hi internals!
> >
> > We just published some rather extensive documentation on internal object
> > orientation:
> >
&g
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, Nik
+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
在 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 > (mailto:glo...@nebm.ist.utl.pt)> wrote:
> > > https://wiki.php.net/rfc/incompat_ctx
> > >
> > > An RFC for deprecating and removing $this from incompatible c
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, Cri
Hi Stas,
在 2012年7月25日星期三,上午2:33,Stas Malyshev 写道:
> Hi!
>
> > from GlobalNamespace\SubSpace\ThirdSace use Class1, Class2 as Alias2,
> > ForthSpace\Class3 as Alias3;
>
> I'm not sure it's necessary. If you import a real lot of the classes
> from the same namespace, just import the parent na
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 time
t.
here is the example:
The above 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 m
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 har
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 =" ?
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 :
> > Hi
> >
> > Some years ago (in 2009) St
E_CATABLE_FATAL, loaded class will be useful, since it
will be used later.
if loaded success everyone is happy.
On 1 May 2012 20:25, Laruence wrote:
> On Tue, May 1, 2012 at 8:03 PM, reeze wrote:
> > Hi internals:
> > danko reported this bug#61422: Lack of autoload on type
an instance of AX,
integer given。
a simple 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
ust make sure numeric
keys works consist since php is so flexible.
Any thoughts?
BTW: I sent bugfix for bug#61347 ArrayIterator 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
suggest
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 re
在 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.
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日星期六,下午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
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::to
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:
staticFunc(); // Just static n
54 matches
Mail list logo