Re: [PHP-DEV] [RFC] Modern Compression (zstd, brotli)

2025-02-18 Thread Paul Dragoonis
Hey, On Tue, 18 Feb 2025, 13:04 Tim Düsterhus, wrote: > Hi > > Am 2025-02-18 13:46, schrieb Jordi Boggiano: > >> My question is: Why? Please also have a look at: > >> > https://github.com/php/policies/blob/main/coding-standards-and-naming.rst#namespaces. > > >> Instead of creating a top-level na

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] Renaming "strict types" to "scalar type coercion"

2024-06-21 Thread Paul Dragoonis
On Fri, Jun 21, 2024 at 10:12 AM Paul Dragoonis wrote: > > > On Thu, Jun 20, 2024 at 11:54 PM Rowan Tommins [IMSoP] < > imsop@rwec.co.uk> wrote: > >> On 19/06/2024 16:34, Larry Garfield wrote: >> >> Also, as someone who does put every file into str

Re: [PHP-DEV] Renaming "strict types" to "scalar type coercion"

2024-06-21 Thread Paul Dragoonis
On Thu, Jun 20, 2024 at 11:54 PM Rowan Tommins [IMSoP] wrote: > On 19/06/2024 16:34, Larry Garfield wrote: > > Also, as someone who does put every file into strict mode as a matter of > course, and appreciates the many languages that do not even have a > concept of non-strict mode (like Go or Ru

Re: [PHP-DEV] New "PECL"

2023-12-05 Thread Paul Dragoonis
On Tue, Dec 5, 2023 at 3:25 PM Paul Dragoonis wrote: > > > On Tue, Dec 5, 2023 at 3:21 PM Pierre Joye wrote: > >> On Tue, Dec 5, 2023, 10:13 PM Pierre Joye wrote: >> >> > >> > >> > You may mention https://github.com/FriendsOfPHP/pickl

Re: [PHP-DEV] New "PECL"

2023-12-05 Thread Paul Dragoonis
On Tue, Dec 5, 2023 at 3:21 PM Pierre Joye wrote: > On Tue, Dec 5, 2023, 10:13 PM Pierre Joye wrote: > > > > > > > You may mention https://github.com/FriendsOfPHP/pickle > > > > which supports pecl.php.net pear format, composer like support, and > > conversion to composer format. > > > > I did

Re: [PHP-DEV] PHP 8.3.0 Released!

2023-11-23 Thread Paul Dragoonis
On Thu, Nov 23, 2023 at 4:57 PM Jakub Zelenka wrote: > The PHP development team announces the immediate availability of PHP 8.3.0. > This release marks the latest major release of the PHP language. > > PHP 8.3 comes with numerous improvements and new features such as: > - Typed Class Constants >

Re: [PHP-DEV] Two new functions array_first() and array_last()

2023-10-15 Thread Paul Dragoonis
On Sun, 15 Oct 2023, 04:49 Saki Takamachi, wrote: > I came up with the idea of ​​using a signature like array_filter(), and > when a callback is passed, "return the first/last element that matches the > condition" and "return null if there is no match." > > The downside to this idea is the loss o

Re: [PHP-DEV] [RFC] [Discussion] A new JIT implementation based on IR Framework

2023-10-05 Thread Paul Dragoonis
On Thu, 5 Oct 2023, 17:44 Dmitry Stogov, wrote: > Hi Internals, > > I've published a presentation about the IR Framework design and > implementation details. > See > > https://www.researchgate.net/publication/374470404_IR_JIT_Framework_a_base_for_the_next_generation_JIT_for_PHP > It explains many

Re: [PHP-DEV] Remove warning when parsing datetime with + symbol?

2022-11-28 Thread Paul Dragoonis
On Mon, 28 Nov 2022, 16:32 Christoph M. Becker, wrote: > On 28.11.2022 at 16:50, Derick Rethans wrote: > > > On Thu, 24 Nov 2022, mickmackusa wrote: > > > >> Can anyone explain to me why it is desirable/beneficial for the DateTime > >> class to store a warning that trailing characters were ignore

Re: [PHP-DEV] RFC: StreamWrapper Support for glob()

2022-09-14 Thread Paul Dragoonis
Hi Timmy, Good suggestion. This seems like a no brainer, and definitely good to add streams support for glob filepaths. You're right, we currently have to work around this in userland. Your code example workaround is super ugly :) I'm intersted to know, from others, if there are deeper technical

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-10 Thread Paul Dragoonis
On Thu, 8 Sep 2022, 17:18 Tim Düsterhus, wrote: > Hi > > On 9/7/22 23:44, Larry Garfield wrote: > > Either I guess? Honestly we should decide that in advance on the list. > :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Exception > now" as a second choice. > > > > I'm a new-ish

Re: [PHP-DEV] Re: Increase maximum size of an uploaded file to 50Mbyte

2022-09-09 Thread Paul Dragoonis
On Thu, 8 Sep 2022, 12:59 Christoph M. Becker, wrote: > On 08.09.2022 at 13:01, Andreas Heigl wrote: > > > On 08.09.22 12:35, Jakub Zelenka wrote: > > > >> On Wed, Sep 7, 2022 at 3:28 PM Christoph M. Becker > >> wrote: > >> > >>> On 07.09.2022 at 15:57, Misha wrote: > >>> > We spend a lot o

[PHP-DEV] Executing PHP SAPI/runtime from Golang/Rust

2022-08-14 Thread Paul Dragoonis
sible, and what blockers are in our way, currently, if it's not even possible to share SAPI calls from another language runtime. Thanks for listening, Paul Dragoonis. I wrote this on my phone, so excuse typos and poor grammar :)

Re: [PHP-DEV] [RFC] Asymmetric visibility

2022-08-05 Thread Paul Dragoonis
On Fri, 5 Aug 2022, 20:53 Larry Garfield, wrote: > On Fri, Aug 5, 2022, at 2:27 PM, Michał Marcin Brzuchalski wrote: > > Hi Larry, > > > > pt., 5 sie 2022, 19:09 użytkownik Larry Garfield > > > napisał: > > > >> Ilija Tovilo and I are happy to present the first new RFC for PHP 8.3: > >> Asymmetr

Re: [PHP-DEV] What to do with qa.php.net?

2022-07-09 Thread Paul Dragoonis
It's useful to me, as I've always been able to merge PRs on the QA site, because I've not been added to any php-web/php-src github repos since we migrated over there. However, if it's not too useful to the majority of people, then I'll still vote to delete it/move stuff. One less site for us all

Re: [PHP-DEV] [RFC][Under discussion] Arbitrary string interpolation

2022-03-18 Thread Paul Dragoonis
I think the original goal of this RFC is to make PHP more expressive, and less clunky (look at Jav). This is a good goal and one much desired by the community, but I think the approach here isn't the right fit or way to achieve it Writing code in strings is a DX nightmare, and static analysis cha

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Paul Dragoonis
On Wed, Mar 2, 2022 at 11:11 PM Paul Crovella wrote: > On Wed, Mar 2, 2022 at 1:08 PM Stanislav Malyshev > wrote: > > > > That said, if somebody were to design a logo version with Ukraine flag > > > > In case anyone has use for it: https://svgshare.com/i/epJ.svg > > Colors are #0057b7 and #ffd70

Re: [PHP-DEV] header() allows arbitrary status codes

2021-12-23 Thread Paul Dragoonis
On Thu, 23 Dec 2021, 00:06 David Gebler, wrote: > On Tue, Dec 21, 2021 at 6:59 PM Christoph M. Becker > wrote: > > > Hi all, > > > > a while ago it has been reported[1] that our header() function actually > > allows arbitrary status codes, which may even overflow. Of course, that > > makes no s

Re: [PHP-DEV] [VOTE] Migrating to GitHub issues

2021-11-20 Thread Paul Dragoonis
Been wanting this since we first setup github. I'm glad we're seriously reconsidering it again. Nikita, If you want any help, with designing/writing scripts to perform the data migration, then just DM me (Twitter?) and I will put in the time/effort to make it happen. Just let me know. Thanks.

Re: [PHP-DEV] Allow objects in define()

2021-06-14 Thread Paul Dragoonis
On Mon, Jun 14, 2021 at 7:47 PM Larry Garfield wrote: > On Mon, Jun 14, 2021, at 9:35 AM, Nikita Popov wrote: > > Hi internals, > > > > With the introduction of enums, it's now possible for constants to hold > > objects. However, this works only when using the `const X = Y` syntax, > not > > when

Re: [PHP-DEV] Changes to Git commit workflow

2021-03-29 Thread Paul Dragoonis
On Mon, 29 Mar 2021, 08:51 Paul Dragoonis, wrote: > > > On Mon, 29 Mar 2021, 02:30 Rasmus Lerdorf, wrote: > >> On Sun, Mar 28, 2021 at 17:15 Sara Golemon wrote: >> >> > On Sun, Mar 28, 2021 at 6:57 PM Paul Crovella >> > wrote: >> > >>

Re: [PHP-DEV] Changes to Git commit workflow

2021-03-29 Thread Paul Dragoonis
On Mon, 29 Mar 2021, 02:30 Rasmus Lerdorf, wrote: > On Sun, Mar 28, 2021 at 17:15 Sara Golemon wrote: > > > On Sun, Mar 28, 2021 at 6:57 PM Paul Crovella > > wrote: > > > >> You might consider requiring commits be signed while you're at it. > >> > >> > > I suggested this as well, and even if we

Re: [PHP-DEV] [RFC] array_key_(first|last|index) functions proposal

2016-01-01 Thread Paul Dragoonis
Hi John, Thanks for submitting the RFC. It just has one piece of something that I feel needs a bit of refinement. The balance of the $key and the $val is out of sync, with one param being by-val and one by-ref. You could simplify the function to remove the &$val altogether, since the function na

Re: [PHP-DEV] Bug #70805 (Segmentation faults whilst running Drupal 8 test suite)

2015-11-04 Thread Paul Dragoonis
he code in exactly one location > (zend_vm_def.h) and then regenerated zend_vm_execute.h. > > Bob > > > Am 04.11.2015 um 03:10 schrieb Paul Dragoonis : > > > > Hey, > > > > Looking at the patch, the changes to zend_vm_def.h and zend_vm_execute.h > > ar

Re: [PHP-DEV] Re: Bug #70805 (Segmentation faults whilst running Drupal 8 test suite)

2015-11-03 Thread Paul Dragoonis
Hey, Looking at the patch, the changes to zend_vm_def.h and zend_vm_execute.h are duplicated in 10 locations. I'm wondering if we can consolidate this into maintainable function/macro to handle this? On Wed, Nov 4, 2015 at 1:58 AM, Xinchen Hui wrote: > Hey: > > > > On Wed, Nov 4, 2015 at 3:58 A

Re: [PHP-DEV] Scalar type hints and scalar type name aliases cause confuson

2015-10-13 Thread Paul Dragoonis
On Mon, Oct 12, 2015 at 8:23 PM, Andrea Faulds wrote: > Hi, > > As PHP 7 currently is, if you write this: > > public function foo(): integer { > return 12; > } > $bar = foo(); > > you'll get the following error: > > Fatal error: Uncaught TypeError: Return value of foo() mu

[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] 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

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] [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] [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][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][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 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] 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] 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] 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] [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: [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] 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] [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] 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] 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] 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] 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] [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] [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] 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] 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] 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] 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] 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
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] 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] [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] [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-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] 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: 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] Maintaining Phar

2013-05-27 Thread Paul Dragoonis
+1 On Mon, May 27, 2013 at 11:41 AM, Sebastian Bergmann wrote: > Am 27.05.2013 12:39, schrieb Michael Wallner: > > All previous MAINtainers are gone and there does not seem to be a lot > > of objection, so I'll start the +1s for a new & willing contributor: > > +1 :) > > -- > Sebastian Bergmann

Re: [PHP-DEV] PHP 5.5 beta3 is here

2013-04-11 Thread Paul Dragoonis
Thanks for all your hard work Julien / David. On Thu, Apr 11, 2013 at 9:50 AM, Julien Pauli wrote: > Hi Internals, > > PHP 5.5.0 Beta 3 has been released for testing. It fixes some bugs against > beta 2. > You'll find details in the NEWS file. > > The packages can be found at: > > http://down

Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Paul Dragoonis
I also am not in favour of the syntax, it's too short and quirky. I'm honestly fine with 'function()' it's very explicit On Tue, Feb 19, 2013 at 1:20 PM, Anthony Ferrara wrote: > Marcello, > > > On Tue, Feb 19, 2013 at 7:57 AM, Marcello Duarte > wrote: > > > Inspired by Sara, here is another RF

Re: [PHP-DEV] Re: O+ 1st results

2013-02-15 Thread Paul Dragoonis
On Fri, Feb 15, 2013 at 9:23 AM, Damien Tournoud wrote: > On Fri, Feb 15, 2013 at 9:54 AM, Pierre Joye wrote: > > > > >>Mediawiki is slower because it does not support yet O+ for usercache, > > >>along other things. > > > > > > Is the same the case with Symfony? > > > > no, MediaWiki caching mod

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Paul Dragoonis
On Thu, Feb 14, 2013 at 5:00 PM, Patrick ALLAERT wrote: > 2013/2/14 Ivan Enderlin @ Hoa : > > I have written: “On Linux, we have inotify (available in PHP through > > pecl/inotify)”, so yup, I know for inotify :-). I propose to gather all > > these API and give a proper one to the end-user. > > If

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Paul Dragoonis
I also agree that we don't need to fix this, nor break BC. It is confusing as hell but it's there now and changing it would be more disruptive. Is there a desire from anyone to gracefully throw E_DEPRECATED in a future version of PHP 5.x when someone tries to __toString() the SplFileObject but onl

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Paul Dragoonis
because why would you cast something to a string if you can call ->current() anyway. Since it's been baked into the object for some time now it can't even be changed now. I'd try to avoid this casting magic and stick with ->current() if you actually mean it. Thanks, Paul Dragoo

Re: [PHP-DEV] new FTP function

2013-01-18 Thread Paul Dragoonis
An extra parameter is required in the above function, but you get the point, i don't want to keep spamming the mailing list with corrections :-) On Fri, Jan 18, 2013 at 3:30 PM, Paul Dragoonis wrote: > Revised function: > > function dir_exists($conn, $currentDir) { > $

Re: [PHP-DEV] new FTP function

2013-01-18 Thread Paul Dragoonis
Revised function: function dir_exists($conn, $currentDir) { $list = ftp_nlist($conn, '-dF '. $currentDir); return in_array($dir, $list); } On Fri, Jan 18, 2013 at 3:28 PM, Paul Dragoonis wrote: > > On Fri, Jan 18, 2013 at 3:18 PM, KISE wrote: > >>

Re: [PHP-DEV] new FTP function

2013-01-18 Thread Paul Dragoonis
On Fri, Jan 18, 2013 at 3:18 PM, KISE wrote: > $res = ftp_nlist($this->conn_id, '-dF '. $dir); > This could be done in two lines. function dir_exists($conn, $dir) { $list = ftp_nlist($conn, '-dF '. $dir); return in_array($dir, $list); }

Re: [PHP-DEV] new FTP function

2013-01-18 Thread Paul Dragoonis
I don't believe there's a feature of the FTP protocol to check if a file/folder exists. Can you please provide a PHP userland solution to this, so that a corresponding C implementation could be added. I believe the way to go about it is list the CWD contents and check if that exists and is of typ

Re: [PHP-DEV] 'Documentation'

2013-01-08 Thread Paul Dragoonis
On Tue, Jan 8, 2013 at 2:27 PM, Pierre Joye wrote: > On Tue, Jan 8, 2013 at 3:22 PM, Lester Caine wrote: > > > Reflection/Annotations are just another way of 'documenting' classes - > > aren't they? > > No. > > Annotations are used to affect behaviors, define services, etc. Check > out the c# im

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

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] 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] 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] 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] 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] [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] 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: 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-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
> 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 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
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] 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] 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] [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] [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] 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] 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] 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] 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-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

[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] 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

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] [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] 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] [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

  1   2   >