Re: [PHP-DEV] [RFC][VOTE][RESULT] Removal of dead or not yet PHP7 ported SAPIs and extensions

2015-02-10 Thread Paul Dragoonis
On Mon, Feb 9, 2015 at 10:29 PM, Anatol Belski wrote: > Hi, > > the voting on the removals in PHP7 in hereby finished. The results are > > > item yes:no > > sapi/aolserver 32:0 > sapi/apache32:0 > sapi/apache_hooks 31:0 > sapi/apache2filter 23:1 > sa

Re: [PHP-DEV] [RFC][VOTE][RESULT] Removal of dead or not yet PHP7 ported SAPIs and extensions

2015-02-10 Thread Paul Dragoonis
On Tue, Feb 10, 2015 at 11:14 PM, Kalle Sommer Nielsen wrote: > Hi Paul > > 2015-02-10 23:59 GMT+01:00 Paul Dragoonis : > > > > Did you accidentally miss out mssql? it resultes in significant > resistance > > to leave core, such as mcrypt and ignoring mathematical

Re: [PHP-DEV] [RFC][VOTE][RESULT] Removal of dead or not yet PHP7 ported SAPIs and extensions

2015-02-10 Thread Paul Dragoonis
On Tue, Feb 10, 2015 at 11:36 PM, Leigh wrote: > On 10 February 2015 at 23:29, Paul Dragoonis wrote: > > It's common sense that if something receives significant resistance then > > there's usually a good reason for it and it shouldn't be ignored > regardless &

Re: [PHP-DEV] [RFC] [VOTE] Parameter skipping RFC

2015-02-21 Thread Paul Dragoonis
I see a LOT of "no" votes against this RFC but can't find the thread outlining the reasoning for such resistence. Could someone link me to this somehow? On Sat, Feb 21, 2015 at 1:43 PM, Pascal Martin, AFUP < mail...@pascal-martin.fr> wrote: > Le 08/02/2015 09:14, Stanislav Malyshev a écrit : > >

Re: [PHP-DEV] [RFC][VOTE] Scalar Type Declarations v0.5

2015-02-26 Thread Paul Dragoonis
Thanks for your work on this Anthony. On Thu, Feb 26, 2015 at 2:58 PM, Anthony Ferrara wrote: > All, > > I have opened voting on Scalar Type Declarations v0.5. Please cast your > vote. > > https://wiki.php.net/rfc/scalar_type_hints_v5#vote > > The vote will remain open until March 13th, 2015 or

Re: [PHP-DEV] password_hash() deprecate salt option - thoughts?

2015-03-31 Thread Paul Dragoonis
On Tue, Mar 31, 2015 at 7:49 PM, Anthony Ferrara wrote: > All, > > Ever since we introduced password_hash() in 5.5, I've been watching > its usage as much as possible. I've setup google alerts and such, as > well as auditing implementations I've found on github to try to > understand how it's use

Re: [PHP-DEV] PDO Oracle driver

2015-04-22 Thread Paul Dragoonis
+1 from me. If nobody is maintaining it then it's a big risk. It should be brought back in when there's people to maintain it. On Wed, Apr 22, 2015 at 10:42 AM, Marco Pivetta wrote: > Absolutely +1 - most developers are dragged into using the PDO Oracle > driver by "hope" (since they find the do

[PHP-DEV] Fwd: please stop the spam on php-webmaster

2015-08-08 Thread Paul Dragoonis
I need someone to turn off the php-webmaster mailer, like now. I tried to change author info on commits i've made - which worked fine - but then blew up the mailer. I tested this on other github repositories and was like a transparent change, all is fine, unless clearly there's a mailer connected

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-23 Thread Paul Dragoonis
On Fri, 23 Aug 2024, 11:02 Stephen Reay, wrote: > > > > On 23 Aug 2024, at 15:29, Rowan Tommins [IMSoP] > wrote: > > > > having global as the default mode (even if we provide an option for > local) is much less disruptive to existing code. > > Hi Rowan, > > I don't disagree with this summary of

Re: [PHP-DEV] Realnames in Git commits

2011-12-15 Thread Paul Dragoonis
Format looks good DSP. On Thu, Dec 15, 2011 at 4:19 PM, David Soria Parra wrote: > As outlined in my previous post. An author in git is identified > by "NAME ". We will rewrite commit information to match > this format during the SVN to Git migration. At the moment > this affects php-src only, bu

Re: [PHP-DEV] Constant arrays

2011-12-19 Thread Paul Dragoonis
Barbu, This is how constants work in all viable languages such as C/++. They are not 'variables of data', they contain scalar values so that you can have a maintainable source for your value to refer to later. http://msdn.microsoft.com/en-us/library/357syhfh(v=vs.80).aspx I believe constants co

Re: [PHP-DEV] Constant arrays

2011-12-19 Thread Paul Dragoonis
2011/12/19 Ángel González : > On 19/12/11 21:23, Paul Dragoonis wrote: >> Barbu, >> >> This is how constants work in all viable languages such as C/++. > I disagree. In C you can have: > const data foo[] = { { "Data1", 2 }, { "Data2", 78 } }; Ag

Re: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Paul Dragoonis
e typed nature. Having a 'numeric' typehint makes sense, because it can be an int, float, or string. Adding typehints like 'int' and 'float' will only piss people off, and make PHP more difficult and less fluent to code in. Lets not go there please.. Thanks, Paul Dragoonis. > > -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP-DEV] SVN Account Request: regality

2011-12-31 Thread Paul Dragoonis
anges can get reviewed and evaluated. >From there things can progress to the point where they're committed to trunk, and thus merged into the appropriate branch (5_4 for example). Hope this helps clear up the process. Thanks, Paul Dragoonis. On Sat, Dec 31, 2011 at 9:15 AM, Adam Bla

Re: [PHP-DEV] Feature Request

2012-01-04 Thread Paul Dragoonis
I agree with Dmitri and Ferenc. -1 on this idea, it's unnecessary. > the reason for this is simple actually at the moment if you want to include > a file for usage but want to check it exists you have todo the following > if (file_exists("/file/located/here.php")) { >  $cFile = "/file/located/her

Re: [PHP-DEV] Re: another fix for max_input_vars.

2012-01-04 Thread Paul Dragoonis
this short of turning off display_errors which we > know from experience a lot of people just don't do no matter how much we > suggest it. I agree with Rasmus here. A lot of people keep display_errors on, even when they shouldn't. It log_errors is on, it should go to the error_lo

[PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-08 Thread Paul Dragoonis
ist, clear,           arginfo_dllist_void,      ZEND_ACC_PUBLIC) SPL_METHOD(SplDoublyLinkedList, clear) {    RETURN_TRUE; } Can someone help me out? Thanks, Paul Dragoonis. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-08 Thread Paul Dragoonis
Here's the patch. At the moment my clear() method clones the functionality of count() just as a prototype to get things working before i make it do the actual clear functionality. Patch attached to this email, made using 'svn diff' - Paul Dragoonis. On Sun, Jan 8, 2012 at 4

Re: [PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-08 Thread Paul Dragoonis
PHP 5_4 branch. Here's the diff as a gist: https://gist.github.com/e3e1da28123017ba568d On Sun, Jan 8, 2012 at 5:43 PM, Etienne Kneuss wrote: > It works fine here on trunk, what code-base are you targetting? > > Best, > > On Sun, Jan 8, 2012 at 18:31, Paul Dragoonis wrote:

Re: [PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-08 Thread Paul Dragoonis
Hey Internals, I've finished the patch, and with approval i'd like to push to trunk, even though i'm aware we have a 5_4 branch code freeze. Can someone review my work and provide feedback/approval? [1] https://gist.github.com/1580974 Thanks, Paul Dragoonis. On Sun, Jan 8,

Re: [PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-09 Thread Paul Dragoonis
Thanks for the feedback Gustavo. New patch is here: https://gist.github.com/1582997 Test case: https://gist.github.com/1583022 Comments are inline. On Mon, Jan 9, 2012 at 8:17 AM, Gustavo Lopes wrote: > On Mon, 09 Jan 2012 04:59:09 +0100, Paul Dragoonis > wrote: > >> Hey Intern

Re: [PHP-DEV] Change bug tracker "bogus" to "not-bug"?

2012-01-24 Thread Paul Dragoonis
On Tue, Jan 24, 2012 at 11:12 PM, Christopher Jones wrote: > > > On 01/24/2012 03:11 PM, Justin Martin wrote: >> >> Hello, >> >> With some frequency, I find bugs which are not "bogus", so much as they >> are reported based on a misunderstanding. Usually this happens for >> documentation problems,

Re: [PHP-DEV] Git Migration Status Update

2012-01-26 Thread Paul Dragoonis
Hi David, Thanks for the great push on the DVCS push to git. I believe I speak for many people when I say your hard work is really appreciated. Look forward to testing out the git installation. - Paul. On Wed, Jan 25, 2012 at 11:36 PM, David Soria Parra wrote: > Hi Internals, > > we are a few

Re: [PHP-DEV] PHP_SESSION_* constant values

2012-01-28 Thread Paul Dragoonis
On Sat, Jan 28, 2012 at 7:17 PM, Justin Martin wrote: > Hello everyone, > > For the result of session_status(), the corresponding constants for the > sessions state are > >  - PHP_SESSION_DISABLED = 0 >  - PHP_SESSION_NONE = 1 >  - PHP_SESSION_ACTIVE = 2 > > I'd like to suggest we change these val

Re: [PHP-DEV] PHP_SESSION_* constant values

2012-01-28 Thread Paul Dragoonis
On Sat, Jan 28, 2012 at 9:14 PM, Sanford Whiteman wrote: >> I believe comparing the value against a constant, is always more >> readable than wondering what "truthy" means. if(session_status() === >> PHP_SESSION_ACTIVE) is much self-documenting than the proposed change. > > ...  also  an  obvious

Re: [PHP-DEV] Re: PHP_SESSION_* constant values

2012-01-28 Thread Paul Dragoonis
On Sat, Jan 28, 2012 at 9:53 PM, Justin Martin wrote: > Someone actually just pointed out to me that if(-1) returns true. In that > case, I suppose my suggestion doesn't quite work. > > The reason I suggest this is that I suspect people will constantly be > looking up what the constants are called

Re: [PHP-DEV] Scalar type hinting

2012-02-27 Thread Paul Dragoonis
2012/2/27 Johannes Schlüter > Hi, > > PHP is no strickt-typed language. Changing this is a massive change, if > you want to go there: There are plenty of other languages. > > If you want this to be an optional feature: > a) It's not optional (one has to maintain code written by others, uses > lib

Re: [PHP-DEV] Possibility to add finally to try/catch?

2012-02-28 Thread Paul Dragoonis
Tried to do something the other day and had to write something a bit quirky tht would have been super clean with a finally block. +1000 On Tue, Feb 28, 2012 at 2:22 PM, Kiall Mac Innes wrote: > +1000 > > This is a feature that I've always wanted in PHP, My main reason being to > reduce code dup

Re: [PHP-DEV] Newbie: issues developing a new extension

2012-02-28 Thread Paul Dragoonis
On Tue, Feb 28, 2012 at 10:00 PM, Rasmus Lerdorf wrote: > On 02/28/2012 01:25 PM, Christian Ferrari wrote: > > Dear all, > > I'm asking your help because I'm not able to solve an issue probably > related to some foolish mistake I have not yet discovered. > > I'm trying to develop an experimental

Re: [PHP-DEV] [RFC - Discussion] Parameter Type Casting Hints

2012-03-04 Thread Paul Dragoonis
Can you make sure that only scalar or array casts can be done? I wouldn't want people to put class typehints in there such as function foo( (SomeClass) $foo) - Paul. On Sun, Mar 4, 2012 at 1:28 AM, Anthony Ferrara wrote: > Hey all, > > I've drafted an RFC for the Parameter type casting hint pro

Re: [PHP-DEV] [RFC - Discussion] Parameter Type Casting Hints

2012-03-04 Thread Paul Dragoonis
Good. On Sun, Mar 4, 2012 at 2:03 PM, Anthony Ferrara wrote: >> Can you make sure that only scalar or array casts can be done? >> >> I wouldn't want people to put class typehints in there such as >> function foo( (SomeClass) $foo) > > That's how it is implemented now.  That'll generate a parse er

Re: [PHP-DEV] [RFC - Discussion] Parameter Type Casting Hints

2012-03-04 Thread Paul Dragoonis
type hints > (http://www.php.net/manual/en/datetime.add.php). > > [ Actually, I would prefer even type hints to work like this. Check if the > passed argument if of the correct type and, if not, try to cast it. Failure > to do so will lead to the E_RECOVERABLE_ERROR as today. ] >

Re: [PHP-DEV] [RFC - Discussion] Parameter Type Casting Hints

2012-03-04 Thread Paul Dragoonis
It would make sense that the default value you're setting matches the zval.type of the casted value. You always want it to be an int, if you're doing (int) so setting it to a string or array would not make sense. - Paul. On Sun, Mar 4, 2012 at 4:46 PM, Lazare Inepologlou wrote: > Anthony, just

Re: [PHP-DEV] Small question about performance

2012-03-15 Thread Paul Dragoonis
On Thu, Mar 15, 2012 at 4:54 PM, Nikita Popov wrote: > On Thu, Mar 15, 2012 at 5:22 PM, Patrick ALLAERT > wrote: >> 2012/3/15 Nikita Popov : >>> If I am understanding the text correctly it is saying that >>>    $f1 = f1(); >>>    $f2 = f2($f1); >>>    $f3 = f3($f2); >>> is using more memory than

Re: [PHP-DEV] Small question about performance

2012-03-15 Thread Paul Dragoonis
On Thu, Mar 15, 2012 at 5:39 PM, Paul Dragoonis wrote: > On Thu, Mar 15, 2012 at 4:54 PM, Nikita Popov > wrote: >> On Thu, Mar 15, 2012 at 5:22 PM, Patrick ALLAERT >> wrote: >>> 2012/3/15 Nikita Popov : >>>> If I am understanding the text corre

Re: [PHP-DEV] Github Pull Request

2012-03-20 Thread Paul Dragoonis
thanks dsp and johannes for this nice tool. On Tue, Mar 20, 2012 at 10:16 AM, David Soria Parra wrote: > Hi > > with the php-src migrated to git we start receiving > pull request on github. A few things to notice: > >  - developers can pull the requests as described here: >    https://wiki.php.ne

Re: [PHP-DEV] PHP class files without

2012-04-07 Thread Paul Dragoonis
wrote: > you are not making valid points > you are proposing DANGEROUS changes! > > what happens if PHP 5.4.x will follow your wishes > (what never will happen) and your file without > php-version? > > what you also do not realize is that the world is not turning > around your windows machine - i

Re: [PHP-DEV] Creating an RFC: do I need to be blessed somehow?

2012-04-08 Thread Paul Dragoonis
On Sun, Apr 8, 2012 at 4:23 PM, Tom Boutell wrote: > Thanks, I have access now. > > Do I need to have a patch in hand before publicizing an RFC? No Tom, feel free to draft up your RFC, people will not necessarily be voting on your patch but on the concept of it. If the RFC voting consensus is neg

Re: [PHP-DEV] Object oriented page templates in PHP

2012-04-09 Thread Paul Dragoonis
-1. PHP doesn't need more magic. On Mon, Apr 9, 2012 at 4:53 PM, Nikita Popov wrote: > On Mon, Apr 9, 2012 at 5:10 PM, Tom Boutell wrote: > > What if PHP supported a short tag for calling a method of $this? > > > > Then one could write: > > > > > > A big -1 on this. > > If you want to roll you

Re: [PHP-DEV] Make require*/include* behave like a function for returning values, and more

2012-04-17 Thread Paul Dragoonis
I don't see any fundamental benefit to having this in PHP. It doesn't work around any current restrictions in the language. It just looks like extra fluffy magic that we could do without. - Paul. On Tue, Apr 17, 2012 at 8:18 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > Hi ev

Re: [PHP-DEV] get_magic_quotes_gpc() returns false instead of 0

2012-04-24 Thread Paul Dragoonis
Happy to patch this once someone confirms this is a bug and not "changed behaviour" in 5.4. - Paul. On Tue, Apr 24, 2012 at 4:29 PM, Philip Olson wrote: > Hello everyone, > > The following bug report brings up a good point: > >  https://bugs.php.net/61784 > > The get_magic_quotes_gpc() function

Re: [PHP-DEV] [RFC] [DISCUSSION] array_part()

2012-05-14 Thread Paul Dragoonis
Can you please add some code examples on the RFC, that get outputted as tags. Ideally demonstrating var_dump() output to inspect the return value of your new function to get a clear indication of the input, and resulting output. - Paul. On Mon, May 14, 2012 at 11:21 AM, Gustavo Lopes wrote: >

Re: [PHP-DEV] [RFC] [DISCUSSION] array_part()

2012-05-14 Thread Paul Dragoonis
Hey, Am i correct in assuming this is basically substr() for arrays. On Mon, May 14, 2012 at 11:29 AM, Gustavo Lopes wrote: > On Mon, 14 May 2012 12:26:11 +0200, Paul Dragoonis > wrote: > > Can you please add some code examples on the RFC, that get outputted as >> t

Re: [PHP-DEV] [RFC] [DISCUSSION] array_part()

2012-05-14 Thread Paul Dragoonis
was meaning earlier but was on my mobile phone. Thanks Pierre. Gustavo, why would I use array_part() if I could use array_slice() to get the parts of an array between two offsets. > > > Cheers, > > On Mon, May 14, 2012 at 1:39 PM, Gustavo Lopes > wrote: > > On Mon, 14 May

[PHP-DEV] Subdomain Set Up

2012-06-16 Thread Paul Dragoonis
Hi Internals, I attempted to get (and failed) some attention on my request that I posted to php-webmaster mailing list, so I'm escalating it here: http://news.php.net/php.webmaster/13696 Thanks, Paul Dragoonis. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] Subdomain Set Up

2012-06-16 Thread Paul Dragoonis
Okay, Thanks for the reply. On Sat, Jun 16, 2012 at 1:34 PM, Gustavo Lopes wrote: > On Sat, 16 Jun 2012 14:17:04 +0200, Paul Dragoonis > wrote: > >> I attempted to get (and failed) some attention on my request that I >> posted to php-webmaster mailing list, so I

Re: [PHP-DEV] [DRAFT] RFC - array_column() function

2012-06-21 Thread Paul Dragoonis
On Thu, Jun 21, 2012 at 8:27 PM, Ben Ramsey wrote: > Hi all, > > I've written a draft version of an RFC for pull request 56 ( > https://github.com/php/php-src/pull/56 ), to add array_column() to the core. > Please take a look and provide feedback so that I can improve the > patch/proposal. > > htt

Re: [PHP-DEV] [DRAFT] RFC - array_column() function

2012-06-25 Thread Paul Dragoonis
What about array_extract ? On Mon, Jun 25, 2012 at 9:31 PM, Aaron Holmes wrote: > For what my .02 is worth, I imagine "plucking" an item out of an array > would not occur to a user-land developer as the proper nomenclature for > extracting all the values from an array with the given key. At wors

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Paul Dragoonis
My input is that we should be focusing on features that PHP lacks, or fixing bugs rather than adding more sugar syntax just for the sake of adding it. On Fri, Jun 29, 2012 at 7:47 PM, Pierrick Charron wrote: > No problem when you'll come in Montreal ! If you need any help don't > hesitate. > > Pi

Re: [PHP-DEV] [VOTE] Hash_pbkdf2

2012-07-02 Thread Paul Dragoonis
I see no coding examples, just a function declaration. On Mon, Jul 2, 2012 at 5:34 PM, Anthony Ferrara wrote: > Hello all, > > I've opened voting for the hash_pbkdf2 RFC adding hash_pbkdf2() to master: > > https://wiki.php.net/rfc/hash_pbkdf2#vote > > Thanks, > > Anthony > > -- > PHP Internals -

Re: [PHP-DEV] Re: array_last_key() function

2012-07-14 Thread Paul Dragoonis
On Sat, Jul 14, 2012 at 3:04 AM, Anthony Ferrara wrote: > Stas, > >> I like this idea. array_first_key would be nice too >> >> I am probably missing something, but what those would allow to do that >> rewind/end+key() doesn't do? >> > > The big thing that it does that end()+key() doesn't do is rea

Re: [PHP-DEV] Re: array_last_key() function

2012-07-14 Thread Paul Dragoonis
rily) if it were a > core function, but I'd like to see numbers before making a decision. I would > still want to see a significant advantage before it is added to core. > > > On Sat, Jul 14, 2012 at 9:33 AM, Paul Dragoonis wrote: >> >> $lastKey = key(array_slice($a

[PHP-DEV] New String Function: str_replace_limit

2012-07-15 Thread Paul Dragoonis
d $replace , mixed $subject [, int $limit ] ) Thoughts? Paul Dragoonis. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New String Function: str_replace_limit

2012-07-15 Thread Paul Dragoonis
The 4th param to str_replace is a by-ref param, so you can't just skip over it, can you ? On Sun, Jul 15, 2012 at 8:54 PM, Felipe Pena wrote: > Hi, > > 2012/7/15 Paul Dragoonis : >> Hey, >> >> I'm proposing to add a new function str_replace_limit, this will

Re: [PHP-DEV] New String Function: str_replace_limit

2012-07-16 Thread Paul Dragoonis
Does anyone have any objections on this implementation approach? (obviously we'd have to wait for the default param skipping to be implemented, I'm not sure on the implementation status of that feature) Thanks. Paul Dragoonis. On Mon, Jul 16, 2012 at 9:08 AM, Kingsquare.nl - Robin Speekenbri

Re: [PHP-DEV] New String Function: str_replace_limit

2012-07-16 Thread Paul Dragoonis
On Mon, Jul 16, 2012 at 12:23 PM, Florian Anderiasch wrote: > On 07/16/2012 10:29 AM, Paul Dragoonis wrote: >> Thanks for the comments guys, I like your idea about skipping the >> by-ref count parameter. >> >> If the 'default' keyword were to be added in, the

Re: [PHP-DEV] Make try/catch brackets optinal

2012-07-19 Thread Paul Dragoonis
Why is your try block only going to contain 1 line, and that's throwing an exception?? try throw new Exception('foobar'); catch(Exception $e) Braces are a good thing, they give structure and stop people from mis-reading things and writing bugs, the same can be said for the if() situation. 1) Br

Re: [PHP-DEV] Make try/catch brackets optinal

2012-07-19 Thread Paul Dragoonis
On Thu, Jul 19, 2012 at 10:58 AM, Charlie Somerville wrote: > On Thursday, 19 July 2012 at 7:49 PM, Paul Dragoonis wrote: > > Why is your try block only going to contain 1 line, and that's > throwing an exception?? > > try > throw new Exception('foobar'); >

Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions

2012-07-24 Thread Paul Dragoonis
On Tue, Jul 24, 2012 at 12:20 PM, Laruence wrote: > Hi: > As the previous threads disscussed, I make a implemention. > > here is the RFC: https://wiki.php.net/rfc/finally > > any suggestions? > > thanks > > -- > Laruence Xinchen Hui > http://www.laruence.com/ > > -- > PHP Internals -

Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions

2012-07-24 Thread Paul Dragoonis
On Tue, Jul 24, 2012 at 6:20 PM, Rasmus Lerdorf wrote: > On 07/24/2012 10:01 AM, Nikita Popov wrote: > >> Another, separate point against finally is that in PHP (unlike many >> other languages) most (all?) built-in resources clean up after >> themselves. So if you open a file you don't have to wor

Re: [PHP-DEV] Proposal: use SomeClass::staticMethod

2012-08-15 Thread Paul Dragoonis
Comments inline. On Wed, Aug 15, 2012 at 11:59 AM, Giedrius Dubinskas wrote: > Hello Internals! > > I'm just on and off luker here but thought I'll throw in an idea for a > feature I'd love to see in PHP: aliasing static methods. > > Syntax would look something like this: > > use Namespaced\Som

Re: [PHP-DEV] get_class_vars() returned information ORDER

2012-09-09 Thread Paul Dragoonis
Can we use reflection to inspect the properties in the order that they're written, or the order that the parser found public/protected/private keywords and properties. Paul. On Sun, Sep 9, 2012 at 1:10 PM, Sherif Ramadan wrote: > On Sun, Sep 9, 2012 at 7:52 AM, Johannes Schlüter > wrote: > > >

Re: [PHP-DEV] Vote: Anonymous Classes

2013-10-09 Thread Paul Dragoonis
Hi Joe, Thanks for your hard work on anonymous classes. I voted no because I feel it's just adding more and more ways to achieve similar results and the syntax is just more sugary fluff to allow people to do things the wrong way. We've had a lot of new features in recent versions, i.e: traits, s

Re: [PHP-DEV] [VOTE] Mutliple defaults in switch statements

2014-08-12 Thread Paul Dragoonis
On 12 Aug 2014 22:36, "Sara Golemon" wrote: > > On Tue, Aug 12, 2014 at 10:08 AM, Andrea Faulds wrote: > > On 12 Aug 2014, at 17:53, Sara Golemon wrote: > >> Voting is open: https://wiki.php.net/rfc/switch.default.multiple#vote > > > > I’m all for this, but the *minimum* discussion period is *tw

Re: [PHP-DEV] [VOTE] Abstract Syntax Tree

2014-08-20 Thread Paul Dragoonis
On Tue, Aug 19, 2014 at 3:32 AM, Andi Gutmans wrote: > Hi Nikita, > > I reviewed the AST RFC on my way to vote but there was something that > wasn’t clear to me. > This patch introduces some semantic/behavioral changes in addition to the > AST. > Are these as a side-effect of how AST was implemen

Re: [PHP-DEV] [VOTE] Abstract Syntax Tree

2014-08-20 Thread Paul Dragoonis
On Wed, Aug 20, 2014 at 2:57 PM, Nikita Popov wrote: > On Wed, Aug 20, 2014 at 3:30 PM, Paul Dragoonis > wrote: > >> Hi Nikita, >> >> I second some of Andi's concerns about behavioural changes, some things >> working from right-to-left and not left-to-

Re: [PHP-DEV] [VOTE] Abstract Syntax Tree

2014-08-21 Thread Paul Dragoonis
On Wed, Aug 20, 2014 at 3:41 PM, Levi Morrison wrote: > On Wed, Aug 20, 2014 at 7:30 AM, Paul Dragoonis > wrote: > > On Tue, Aug 19, 2014 at 3:32 AM, Andi Gutmans wrote: > > > >> Hi Nikita, > >> > >> I reviewed the AST RFC on my way to vote but the

Re: [PHP-DEV] Making parse_ini_*() aware of types

2014-09-01 Thread Paul Dragoonis
Seems like a no brainer and since its gone through voting then you could go ahead with it. On 30 Aug 2014 15:37, "Tjerk Meesters" wrote: > Hi internals, > > I was going through the bug list and found this report: > > https://bugs.php.net/bug.php?id=38409 > > It discusses the fact that `parse_ini_

Re: [PHP-DEV] Improve PHP 7 serialization

2014-09-23 Thread Paul Dragoonis
Hi , Backwards compatibility is one hurdle, but if you wipe all your serialised data then begin to re-serialise using the new approach then you're fine. As for what to use msgpack or igbinary, well there's already good support for igbinary in PHP thanks to Pierre and others. You should benchmark

Re: [PHP-DEV] Improve PHP 7 serialization

2014-09-23 Thread Paul Dragoonis
> technologies - Java, Python, Lua in Redis. > > > 2014-09-23 12:20 GMT+03:00 Paul Dragoonis : > > Hi , > > > > Backwards compatibility is one hurdle, but if you wipe all your > serialised > > data then begin to re-serialise using the new approach then you're

Re: [PHP-DEV] Improve PHP 7 serialization

2014-09-23 Thread Paul Dragoonis
fault instead of APC. Pierre, do you see merit on including by default in PHP7 ? On Tue, Sep 23, 2014 at 12:57 PM, Pierre Joye wrote: > http://pecl.php.net/package/msgpack > > On Tue, Sep 23, 2014 at 1:34 PM, Leigh wrote: > > On 23 September 2014 12:22, Paul Dragoonis wrote: >

Re: [PHP-DEV] New Standardized HTTP Interface

2014-10-31 Thread Paul Dragoonis
On 30 Oct 2014 19:03, "Sherif Ramadan" wrote: > > Hello Internals, > > I've been meaning to write up a full-blown RFC for introducing a new > standardized HTTP interface for PHP core for some time now. I figure now > with PHP 7 on the road map this might be a good time to start this > discussion s

Re: [PHP-DEV] Zend Engine 3

2014-11-24 Thread Paul Dragoonis
On 24 Nov 2014 12:18, "Nikita Popov" wrote: > > On Mon, Nov 24, 2014 at 1:10 AM, Andrea Faulds wrote: > > > Good evening, > > > > Since phpng, int64, and perhaps other future changes in PHP 7 are a pretty > > big change, I think we ought to bump the major version number of the Zend > > Engine, fr

Re: [PHP-DEV] Zend Engine 3

2014-11-24 Thread Paul Dragoonis
On 24 Nov 2014 12:32, "Paul Dragoonis" wrote: > > > On 24 Nov 2014 12:18, "Nikita Popov" wrote: > > > > On Mon, Nov 24, 2014 at 1:10 AM, Andrea Faulds wrote: > > > > > Good evening, > > > > > > Since phpng, int64, and pe

Re: [PHP-DEV] [VOTE][RFC] Native TLS

2014-12-14 Thread Paul Dragoonis
On Wed, Dec 10, 2014 at 8:46 PM, Dmitry Stogov wrote: > > +1 > > the patch is great. > It doesn't affect non-ZTS build at all. > ZTS build became even a bit faster. :) > > And we finally will able to forget about TSRMLS_ macros :) > Say what? this is music to my ears :) Thanks for the patch.

Re: [PHP-DEV] [VOTE][RFC] Native TLS

2014-12-18 Thread Paul Dragoonis
On Wed, Dec 17, 2014 at 8:27 PM, Anatol Belski wrote: > > Hi, > > On Wed, December 10, 2014 20:04, Anatol Belski wrote: > > Hi, > > > > > > hereby the voting on https://wiki.php.net/rfc/native-tls#vote is opened. > > The vote starts on 12/10/2014 at 21:00 CET and ends on 12/17/2014 at > > 21:00 >

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-20 Thread Paul Dragoonis
Hi Francois, It's too big of a BC change firstly. Secondly it has no language benefit or developer benefit. The only benefit is case correctness which is a nice to have. Making sure existing code works is a must have. Cheers, Paul On 20 Dec 2014 22:01, "F & N Laupretre" wrote: > Hi, > > > >

Re: [PHP-DEV] Re: [PATCH] Consistent type names in error messages

2014-12-21 Thread Paul Dragoonis
On 21 Dec 2014 13:25, "Andrea Faulds" wrote: > > > > On 20 Dec 2014, at 15:50, Andrea Faulds wrote: > > > > > >> On 14 Dec 2014, at 18:35, Andrea Faulds wrote: > >> > >> I’ve made a patch which makes zend_parse_parameters and userland type hints consistently show “integer” and “float” rather tha

Re: [PHP-DEV] Bugfest

2014-12-28 Thread Paul Dragoonis
Come up with a way to incentivise people to fix bugs. My previous suggestion was to have a contributors page and it will rank people based on bug fixes. I'd be happy to work on this with someone. On 28 Dec 2014 19:16, "Levi Morrison" wrote: > I have committed a fix for one bug and closed anothe

Re: [PHP-DEV] One API to rule them all? (Was: Extension Prepend Files)

2015-01-09 Thread Paul Dragoonis
On 10 Jan 2015 01:10, "Sara Golemon" wrote: > > On Thu, Jan 8, 2015 at 5:44 PM, Pierre Joye wrote: > > The fact that hhvm implements a significant part of the extensions (or > > other areas) using PHP+additional syntax as well as adding cleaner > > APIs or mechanisms for the C parts only confirms

Re: [PHP-DEV] [RFC] jsond

2015-01-11 Thread Paul Dragoonis
On 11 Jan 2015 17:28, "Jakub Zelenka" wrote: > > Hi, > > This rfc about replacing json with jsond is under discussion. > > https://wiki.php.net/rfc/jsond > > I have finally done some benchmarks. You can find a link in the RFC. > > It's been extensively tested for the last few months and there is j

Re: [PHP-DEV] Improvements to Hastable Bucket structure

2015-01-21 Thread Paul Dragoonis
On 22 Jan 2015 06:43, "Benjamin Coutu" wrote: > > Hi, > > Currently a hashtable bucket has to store both, the numeric index "h" and a potential pointer to a string key "key". > > There is room for improvement here because "h" and "key" are conceptually mutually exclusive. I therefore propose to un

Re: [PHP-DEV] Re: [RFC][VOTE] Turn gc_collect_cycles into function pointer

2015-01-22 Thread Paul Dragoonis
On 22 Jan 2015 08:57, "Benjamin Eberlei" wrote: > > On Wed, Jan 7, 2015 at 8:33 PM, Benjamin Eberlei > wrote: > > > Hello everyone, > > > > After discussion I am putting the RFC on turning gc_collect_cycles into a > > function pointer to vote: > > > > https://wiki.php.net/rfc/gc_fn_pointer > > >

Re: [PHP-DEV] [RFC] Vote results for default ctors RFC

2015-01-25 Thread Paul Dragoonis
Hi Stas, Maybe a cool wiki feature addition is: once people vote they could optionally leave a comment right there on the wiki, which we could collect and read. Thoughts? Here's my feedback for you on why i voted No. 1) It felt a bit too "magic" for me, with no real gain from an internal or user

Re: [PHP-DEV] Re: [VOTE] Remove hex support in numeric strings

2015-01-26 Thread Paul Dragoonis
On 26 Jan 2015 20:02, "Nikita Popov" wrote: > > On Sat, Jan 17, 2015 at 8:40 PM, Nikita Popov wrote: > > > Hi internals! > > > > The RFC proposing to remove support for hexadecimal strings in > > is_numeric_string() is now in voting: > > > > https://wiki.php.net/rfc/remove_hex_support_in_nume

Re: [PHP-DEV] Re: Deprecating all INI set/get functions and use ini_set/get()

2015-01-27 Thread Paul Dragoonis
On 27 Jan 2015 19:49, "Stanislav Malyshev" wrote: > > Hi! > > >>> Cons > >>> - Existing code modifications. (It's E_DEPRECATED. User may ignore.) > >>> - (Please point it out more disadvantages) > > I think removing or disrupting functions without a very good reason > (such as, functionality goi

Re: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-02 Thread Paul Dragoonis
Hi Dmitry, It's preferred to have flexible scalars, that way we can interchange between a numerical string or an integer. Over defining on such things loses the powerfulness of PHP. So scalar typehints are detrimental rather than useful. Saying something is a scalar or not, is useful however! :)

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-18 Thread Paul Dragoonis
Hi Paddy, Couldn't this just be a new option for the filter_var() function? $clean = filter_var($_POST['someVar'], XSS_CLEAN); - Paul. On Tue, Sep 18, 2012 at 12:30 PM, Pádraic Brady wrote: > Hi all, > > I've written an RFC for PHP over at: https://wiki.php.net/rfc/escaper. > The RFC is a prop

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-18 Thread Paul Dragoonis
On Tue, Sep 18, 2012 at 12:32 PM, Paul Dragoonis wrote: > Hi Paddy, > > Couldn't this just be a new option for the filter_var() function? > > $clean = filter_var($_POST['someVar'], XSS_CLEAN); I see from your RFC that you have a bunch of functions, I believe

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-18 Thread Paul Dragoonis
> javascript:// URLs. If we're not explicit, they won't ever notice when > they're doing it wrong. > > Paddy > > On Tue, Sep 18, 2012 at 12:34 PM, Paul Dragoonis wrote: >> On Tue, Sep 18, 2012 at 12:32 PM, Paul Dragoonis wrote: >>> Hi Paddy, >>&g

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-18 Thread Paul Dragoonis
On Tue, Sep 18, 2012 at 8:50 PM, Rasmus Lerdorf wrote: > On 09/18/2012 03:46 PM, Pádraic Brady wrote: >> Bear in mind the RFC, in userland (and likely any PECL ext) implements >> the ESAPI rules. They've been hacked on a lot over the years which is >> why I made sure they were followed exactly. It

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-18 Thread Paul Dragoonis
7;s really a small portion of PHP code out there in the wild. If we can introduce the new escape_var() function or a new OO class (as per the RFC) then it's going to be readily available in the future. Many thanks, Paul Dragoonis. On Tue, Sep 18, 2012 at 9:22 PM, Ángel González wrot

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-19 Thread Paul Dragoonis
On Wed, Sep 19, 2012 at 10:48 PM, Michael Shadle wrote: > On Tue, Sep 18, 2012 at 10:32 AM, Pádraic Brady > wrote: >> Hi Michael, >> >> See the link near the bottom of the RFC - even htmlspecialchars() has >> unusual behaviour that's potentially insecure. I have no objections to >> there being f

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-08 Thread Paul Dragoonis
Good work Clint! Performance is probably one of the things people will complain about so it's good that your benchmark is proving that it's merely identical to the old __get() approach. What remains on your TODO list for this functionality? When are you planning to run an RFC vote on this? I thi

Re: [PHP-DEV] Generics proposal

2012-10-21 Thread Paul Dragoonis
Hi Nikita, What you're asking for is useful in other languages, but it doesn't match the style of PHP which is to be a quick and easy type-less scripting language. What you're proposing is clearly more suited to something like Java or C#, but doesn't really belong here. I'd also hate to see this

Re: [PHP-DEV] HTML escaped short echo tag

2012-10-21 Thread Paul Dragoonis
On Sun, Oct 21, 2012 at 2:35 PM, Charlie Somerville < char...@charliesomerville.com> wrote: > Hi internals, > > I'd like to propose a new short tag that echos with HTML escaping. > > XSS is still a significant problem for PHP apps, but it is less common in > apps written with frameworks that provi

Re: [PHP-DEV] SplDoublyLinkedList missing insertBefore/After

2012-11-29 Thread Paul Dragoonis
Hi Rafael, I have worked on this code before and if the idea is accepted I'm happy to add features to this class. Let me know. Thanks, Paul. On Thu, Nov 29, 2012 at 11:38 AM, Rafael Dohms wrote: > I have just noticed that the current SPL inplementation of a > DoublyLinkedList does not include

Re: [PHP-DEV] Required __construct call in SplFileObject

2012-12-05 Thread Paul Dragoonis
The way this class is designed, it needs to take the file name via the constructor as an "initiation point". if you try to call a method of this class without initiation occurring it will throw an exception. this is why you must instantiate the SplFileObject's __construct() method to start the in

Re: [PHP-DEV] Required __construct call in SplFileObject

2012-12-05 Thread Paul Dragoonis
You could put it either inside introduction or just below it, in the 'info' style, just to inform people they must call parent::__construct() upon instantiation of their object in order to use this. On Wed, Dec 5, 2012 at 2:46 PM, Paul Dragoonis wrote: > The way this class is

Re: [PHP-DEV] Core liason for PHP FIG

2012-12-16 Thread Paul Dragoonis
On Sun, Dec 16, 2012 at 7:46 PM, Lester Caine wrote: > Pierre Joye wrote: > >> On Sun, Dec 16, 2012 at 3:26 PM, Lester Caine wrote: >> >> >>> > >>> >> Once again this is totally off base. We are not discussing anything >> proposed or adopted by the FIG group but how php.net can better >> cooper

  1   2   >