[PHP-DEV] PHP 4 Bug Summary Report

2004-04-03 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (774 total including feature requests) ===[*General Issues]== 26223 Assigned Error message makes PHP crash (in some special cases) 27372 Verified parse error loadin

[PHP-DEV] PHP 4 Bug Summary Report

2004-04-10 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (756 total including feature requests) ===[*General Issues]== 26223 Assigned Error message makes PHP crash (in some special cases) 27372 Verified parse error loadin

[PHP-DEV] PHP 4 Bug Summary Report

2004-04-17 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (752 total including feature requests) ===[*General Issues]== 26223 Feedback Error message makes PHP crash (in some special cases) 27372 Verified parse error loadin

confirm subscribe to internals@lists.php.net

2012-09-11 Thread internals-help
Hi! This is the ezmlm program. I'm managing the internals@lists.php.net mailing list. I'm working for my owner, who can be reached at internals-ow...@lists.php.net. To confirm that you would like arch...@mail-archive.com added to the internals mailing list, please send an empt

confirm subscribe to internals@lists.php.net

2014-07-03 Thread internals-help
Hi! This is the ezmlm program. I'm managing the internals@lists.php.net mailing list. I'm working for my owner, who can be reached at internals-ow...@lists.php.net. To confirm that you would like arch...@mail-archive.com added to the internals mailing list, please send an empt

WELCOME to internals@lists.php.net

2014-07-03 Thread internals-help
Hi! This is the ezmlm program. I'm managing the internals@lists.php.net mailing list. I'm working for my owner, who can be reached at internals-ow...@lists.php.net. Acknowledgment: I have added the address arch...@mail-archive.com to the internals mailing list. Welcome to

[PHP-DEV] Are warnings guaranteed?

2023-12-14 Thread petrov.boris.v.mail.ru via internals
2 correct and replace Example 1 with it. Is relying on warnings being converted to exceptions by error handler is equivalent to checking return value with regards to the set of error conditions covered? If this guarantee is already there, please point to me to the relevant documentation page. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Windows builds of PHP 7.4+ use Visual Studio 2019

2019-06-06 Thread Steffen via internals
ready (and particularly the renaming of the > PHP_SDK_VC environment variable to PHP_SDK_VS). You may have to adapt > custom tooling accordingly, though. > > Thanks, > Christoph > > [1] <https://windows.php.net/> > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] zend_call_method with arguments passed by reference

2020-01-08 Thread mdolezal.noctuint.cz via internals
Hello, I hope this is the appropriate mailing list, please redirect me to better please if required. I am currently rewriting our PHP extension from PHP5 to PHP7. To call PHP methods from our C/C++ code we use slightly modified zend_call_method from Zend/zend_interfaces.c (to use more argumen

RE: [PHP-DEV] zend_call_method with arguments passed by reference

2020-01-08 Thread mdolezal.noctuint.cz via internals
ov Sent: Wednesday, January 8, 2020 4:06 PM To: mdole...@noctuint.cz Cc: PHP internals Subject: Re: [PHP-DEV] zend_call_method with arguments passed by reference On Wed, Jan 8, 2020 at 3:59 PM mdolezal.noctuint.cz via internals < internals@lists.php.net> wrote: > Hello, > > I h

RE: [PHP-DEV] zend_call_method with arguments passed by reference

2020-01-09 Thread mdolezal.noctuint.cz via internals
al Message- From: Nikita Popov Sent: Thursday, January 9, 2020 1:17 PM To: mdole...@noctuint.cz Cc: PHP internals Subject: Re: [PHP-DEV] zend_call_method with arguments passed by reference On Wed, Jan 8, 2020 at 4:18 PM wrote: > Thank you for your answer Nikita. > Can you please give

Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading

2023-04-11 Thread Hans Krentel via internals
On Monday 10 April 2023 14:17:04 (+02:00), G. P. B. wrote: > Hello Internals, > > Dan and I would like to propose a new core autoloading mechanism [...] > > The existing SPL autoloading functions would become aliases to the new Core > ones and will continue to work with

[PHP-DEV] Re: [RFC] PHP Technical Committee

2023-04-11 Thread Björn Larsson via internals
areas for improvement of PHP, e.g. like a roadmap/wishlist for 9.0? Regards //Björn L -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] Re: Future stability of PHP?

2023-04-11 Thread Björn Larsson via internals
FC's that was rejected and maybe these can be brought to life again for 9.0 to bring added value besides completely new features. E.g. one of my favourites was the Pipe operator RFC. Regards //Björn L -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Moving PHP internals to GitHub

2023-04-13 Thread Mikhail Galanin via internals
ld be considered as well. Thanks and have a great day. On Wed, Apr 12, 2023 at 2:53 PM Alex Wells wrote: > > Hey. > > PHP currently uses internals@lists.php.net for communication. That includes > mostly RFCs (or their votings, or their pre-discussion) and sometimes > questions abou

Re: [PHP-DEV] Moving PHP internals to GitHub

2023-04-14 Thread Björn Larsson via internals
Den 2023-04-13 kl. 10:38, skrev Mikhail Galanin via internals: Hello good people, Looks like another hot discussion on the list, isn't it? Just wanted to share my notice about the initial idea. 7 years ago there were people considering NNTP as an option. Nowadays, it's pretty cle

Re: [PHP-DEV] [Discussion] Callable types via Interfaces

2023-04-20 Thread Levi Morrison via internals
problem: /** @param callable(int $x, int $y): int $c */ function takeTwo(callable $c); takeTwo(fn ($x, $y) => $x + $y); 3. And another reason they failed: callables are going to want generic types pretty commonly. Think array_filter, array_map, etc. So, I think these brain dump RFCs are all focusing on the wrong problems. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [Discussion] Callable types via Interfaces

2023-04-20 Thread Levi Morrison via internals
On Thu, Apr 20, 2023 at 9:57 PM Deleu wrote: > > > > On Thu, Apr 20, 2023 at 8:23 PM Levi Morrison via internals > wrote: >> >> I'm going to stop here. Two big things: >> >> 1. I think reducing verbosity can be left for the future. We don'

Re: [PHP-DEV] [VOTE] PHP Technical Committee

2023-04-28 Thread Levi Morrison via internals
lves, with some bad downsides if "the wrong people" get in there. You know, the power-hungry egotistical kind of people. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] VCS Account Request: ericmann

2023-05-02 Thread Eric Mann via internals
PHP 8.3 release management -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures

2023-05-05 Thread Hans Krentel via internals
be array or callable object) as those are not supported by ini_get()/in_set(). -- hakre p.s. thank you for creating this RFC and taking care. [1]: https://www.php.net/manual/en/function.assert.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Final anonymous classes

2023-05-05 Thread Levi Morrison via internals
why we couldn't allow `new class() extends $someClass` in the future to specifically allow them to do this. I mean, I'm not going to lobby for it, I'm just pointing out that is more aligned and consistent with other parts of the language, than to simply make it final by default. Ch

Re: [PHP-DEV] Moving a tmpfile()?

2023-05-06 Thread Hans Krentel via internals
... fwrite($tempHandle, "hello world\n"); rewind($tempHandle); $result = file_put_contents($destinationPath, $tempHandle); fclose($tempHandle); Why move the temporary file when it is already a temporary file, right? -- hakre -- PHP Internals - PHP Runtime Development Mailing L

Re: [PHP-DEV] Moving a tmpfile()?

2023-05-07 Thread Hans Krentel via internals
e first place, do it. If not, don't create it, as otherwise you have the copy already and this prevents you from learning if the file transaction really needs it to become robust or it is just extra I/O for nothing (and perhaps introduces places to error you actually don't want to

Re: [PHP-DEV] [RFC] path_join function

2023-05-17 Thread Mikhail Galanin via internals
ing out the RFC > karma would need your Wiki name. > > Best regards > Tim Düsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [Discussion] Add new function `array_group`

2023-05-31 Thread Levi Morrison via internals
be consecutive. > > In any case, I think a utility function such as `array_group` will be widely > useful. > > Please find attached a patch with a proposed implementation. Curious about > your feedback. > > Best, > > Boro Sitnikovski > I'm sorry if one of the many replies already mentioned this, but there was a failed RFC for `array_group`: https://wiki.php.net/rfc/array_column_results_grouping. Note that I voted against it for technical reasons (the signature was just awful, we can do better), but I am not against the idea of adding such helper functions in principle. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [Discussion] Clone with

2023-06-12 Thread Levi Morrison via internals
y I managed to create a working implementation for this feature which > would make it possible to properly modify readonly properties > while simplifying how we write "wither" methods: > https://wiki.php.net/rfc/clone_with > > Regards, > Máté Kocsis I apologize if this has been

Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures

2023-06-14 Thread Levi Morrison via internals
improve it if something is done, but it's not much of a problem. The problem is when there's a wildly different signature, or if args change the return type structure, etc. So in this case, the problem is really: public function __construct(string $isostr, int $options = 0) {} Which can't really be unified with the others very well. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] [RFC] Interface Default Methods

2023-06-14 Thread Levi Morrison via internals
Hello, PHP Internals, I am moving my RFC for interface default methods to discussion: https://wiki.php.net/rfc/interface-default-methods. This can be a useful tool for a few reasons: 1. It can make implementing an interface easier when certain methods can be implemented by other methods in the

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-15 Thread Levi Morrison via internals
f > what can happen once the RFC would be accepted. Juliette, it's in the RFC under the second bullet point here: https://wiki.php.net/rfc/interface-default-methods#backward_incompatible_changes. Is there something specific you'd like added there? -- PHP Internals - PHP Runtime De

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-15 Thread Levi Morrison via internals
I have added a brief section in RFC impact that code analysis tools will need to be updated. This is implicitly true for many language features, but I see no harm in calling it out in the RFC, so I have done so. Thank you for the feedback. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-15 Thread Levi Morrison via internals
rue, then absent further evidence, I would say to allow it. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-16 Thread Levi Morrison via internals
On Fri, Jun 16, 2023 at 11:51 AM Deleu wrote: > > > On Thu, Jun 15, 2023 at 12:48 AM Levi Morrison via internals > wrote: >> >> Hello, PHP Internals, >> >> I am moving my RFC for interface default methods to discussion: >> https://wiki.php.net/rfc/inte

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-18 Thread Levi Morrison via internals
On Sat, Jun 17, 2023 at 4:10 PM David Gebler wrote: > > On Thu, Jun 15, 2023 at 4:48 AM Levi Morrison via internals > wrote: >> >> >> I am moving my RFC for interface default methods to discussion: >> https://wiki.php.net/rfc/interface-default-methods. >

[PHP-DEV] [PHP8.3] Feature freeze in 4 weeks

2023-06-20 Thread Eric Mann via internals
Good morning, all! This is a friendly reminder from your RMs that the PHP 8.3 feature freeze is in ~4 weeks on July 18th [1]. Alpha1 is already out and Alpha2 is scheduled this Thursday. All new features and RFCs need to be discussed with voting polls closed on or before July 18th for inclus

Re: [PHP-DEV] [RFC] [Vote] PHP 8.3 deprecations

2023-06-22 Thread Björn Larsson via internals
t is code that has been working flawlessly for 9 years, so it's only work and no benefit. Given that deprecations are piling up for 8.x track I think one should be a bit cautious when approaching the next major version. r//Björn L -- PHP Internals - PHP Runtime Development Mailing List To un

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-26 Thread Levi Morrison via internals
;s one more topic that needs to go in there, tentatively called 'default cancelling': ```php interface Interface1 { function m1() { /* ... */ } } interface Interface2 extends Interface1 { function m1(); // may or may not change signature } ``` For various reasons which I'll put in the RFC, this will "cancel" the default, meaning any class which implements Interface2 instead of Interface1 will not receive that default. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [VOTE] Deprecate remains of string evaluated code assertions

2023-06-28 Thread Levi Morrison via internals
On Wed, Jun 28, 2023 at 10:09 AM G. P. B. wrote: > > Hello internals, > > I'm opening the vote for the > Deprecate remains of string evaluated code assertions RFC: > https://wiki.php.net/rfc/assert-string-eval-cleanup > > It will last for two weeks and end on Wednes

Re: [PHP-DEV] [VOTE] Interface Default Methods

2023-07-03 Thread Levi Morrison via internals
depth > discussion. This is probably going to bite in the longer term. > > Best regards > Tim Düsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > I suppose different people will think different thi

Re: [PHP-DEV] [VOTE] Interface Default Methods

2023-07-13 Thread Brent Roose via internals
is point it's not an ego-hit. But that's not a > process everyone has gone through. > > In short, I suspect at least much of the pushback is "that is weird and not > normal, according to the normal I first learned, so it must be a bad idea," > and people just stop there. > > (If you voted no and the above description doesn't apply to you, please do > explain what your alternate reasoning is, because RFC authors desperately > need more feedback than we get right now.) > > --Larry Garfield > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] freopen() function

2023-07-14 Thread Mikhail Galanin via internals
, create new or would it be better to start with a RFC? Links: [1] https://github.com/php/php-src/pull/950 [2] https://linux.die.net/man/3/freopen Thanks -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Interface Default Methods

2023-07-17 Thread Levi Morrison via internals
cipated in the discussion and the voting. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] ICU - NumberFormatter::ROUNDING_MODE default ROUND_HALFEVEN

2023-08-03 Thread Hans Krentel via internals
hange attributes to non default values, this is not a programming question I have. I hope you don't mind the attention to detail. Best -- hakre [1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingmode -- PHP Internals - P

Re: [PHP-DEV] ICU - NumberFormatter::ROUNDING_MODE default ROUND_HALFEVEN

2023-08-03 Thread Hans Krentel via internals
On Thursday 03 August 2023 21:07:35 (+02:00), Tim Düsterhus wrote: > Hi > > On 8/3/23 20:55, Hans Krentel via internals wrote: > > Feedback from actual ICU caretakers would be good though, because me > > is entirely from a users perspective, also I know how to change

Re: [PHP-DEV] Re: ICU - NumberFormatter::ROUNDING_MODE default ROUND_HALFEVEN

2023-08-03 Thread Hans Krentel via internals
ne, but in hindsight of output formatting - obviously the totally other side - the current default is surprising, too. But it is certainly the safer path to not change it. For now, I've already learned a lot more and should take some time to look into this. E.g. understanding why this

Re: [PHP-DEV] [VOTE] Support optional suffix parameter in tempnam

2023-08-28 Thread Levi Morrison via internals
ture. It > will be unexpected for users if their code completely fails to work on > Windows, because the suffix is ignored. > > For that reason I voted "no". > > Best regards > Tim Düsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To

[PHP-DEV] Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support

2023-09-04 Thread Dennis Snell via internals
Thanks for the proposal Niels, I’ve dealt with my own grief working through issues in DOMDocument and wanting it to work but finding it inadequate. > HTML5 This would be a great starting point; I would love it if we took the opportunity to fix named character reference decoding, as PHP has (to

[PHP-DEV] Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support

2023-09-06 Thread Dennis Snell via internals
he.ni...@gmail.com>> wrote: >>> >>> I'm opening the discussion for my RFC "DOM HTML5 parsing and serialization >>> support". >>> https://wiki.php.net/rfc/domdocument_html5_parser >>> <https://wiki.php.net/rfc/domdocument_html5_parser> >>> >>> Kind regards >>> Niels > Impressive proposal. It will be nice to have. Did you consider any tricks for text encoding, such as converting non-utf8 documents into utf8 first before parsing? Was wondering if we did that if we could lean on `iconv` and save the extra data in the library, if that’s important enough. Cheers, Dennis Snell -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] A new JIT engine for PHP-8.4/9

2023-09-12 Thread Björn Larsson via internals
Den 2023-09-11 kl. 11:28, skrev Dmitry Stogov: Hi internals, I'm glad to present a new JIT engine that is going to be used in the next major PHP version. Now it's a real optimizing compiler with Intermediate Representation similar to Java HotSpot server compiler. It makes a base

Re: [PHP-DEV] [RFC] [Discussion] DOM HTML5 parsing and serialization support

2023-09-21 Thread Dennis Snell via internals
eferences. Kindly, Dennis Snell -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Increasing the default BCrypt cost

2023-09-25 Thread Levi Morrison via internals
is recommendation. Perhaps someone has time to investigate this? Anyway, it's "future work." I have voted for 11, but will not be hurt in any way if 12 wins. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support

2023-09-29 Thread Dennis Snell via internals
` is more appropriate, that they aren’t supplying HTML documents with in-band text encoding information, and so there’s a chance that de-emphasizing the parameter may be technically more accurate and practically less helpful. Love seeing all the continued work on this! Thank you so much for yo

Re: [PHP-DEV] Re: [RFC] [Discussion] DOM HTML5 parsing and serialization support

2023-09-29 Thread Dennis Snell via internals
> Just chiming in here to say that while we don't offer a createFragment() in > this proposal, it's possible to parse fragments by passing the > LIBXML_HTML_NOIMPLIED option. Alternatively, in the future I plan to offer > innerHTML which you could use then in conjunction with > createDocumentFr

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

2023-10-06 Thread Levi Morrison via internals
On Thu, Oct 5, 2023 at 1:52 PM Dmitry Stogov wrote: > > Hi internals, > > The vote on "A new JIT implementation based on IR Framework" RFC is started. > > https://wiki.php.net/rfc/jit-ir > > Thanks. Dmitry. >From the RFC: > The details of the IR fram

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

2023-10-17 Thread Levi Morrison via internals
: ```php $value = \array_first($array); if ($value === null) { // handle the failure } else { // success } ``` But I fear in practice people will just omit the error checking. One way around that is to throw an exception. I'm not sure how I feel about that, but I'll think about it. -

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

2023-10-18 Thread Levi Morrison via internals
perfectly fine to use `array_first` or `array_last` with `$foo`. I think probably you would use `array_key_first` and `array_key_last` so you also get the key and not just the value, but I don't see any need to reduce `array_first` and `array_last` to only be logical or correct with arrays th

[PHP-DEV] Re: New RFC : empty() function

2023-10-31 Thread Brady Wetherington via internals
begrudgingly) leave empty() and warn against its use, and have is_empty() as a new thing. Maybe for some future deprecation or removal? I also do like the idea that someone else mentioned here about being able to possibly start to get away from @'ing variables with a solution like this. -B. -

Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX

2023-11-04 Thread Kentaro Takeda via internals
Hi, internals. > As shown in the following issue, the behavior of `PDO::PARAM_` is > inconsistent and I would like to fix this. > https://github.com/php/php-src/issues/12603 I consider the current behavior a bug. And some of them contain behaviors that are very confusing to users.

Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX

2023-11-05 Thread Kentaro Takeda via internals
tributions are interesting and invaluable. They are much appreciated. Best regards -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX

2023-11-05 Thread Kentaro Takeda via internals
elect 1 = true ; -- `ERROR: operator does not exist: integer = boolean` The conditions for casting and comparison were different. `PDO_PARAM_INT` still needs to be passed as `unknown` to PostgreSQL. Thank you! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https

[PHP-DEV] Set register_argc_argv to Off by default

2023-11-07 Thread Thomas Chauchefoin via internals
https://hub.docker.com/_/php [3]: https://www.youtube.com/watch?v=yq2rq50IMSQ [4]: https://github.com/advisories/GHSA-jm6m-4632-36hf -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Set register_argc_argv to Off by default

2023-11-08 Thread Thomas Chauchefoin via internals
On Tue, Nov 7, 2023 at 11:46 AM Sebastian Bergmann wrote: > Am 07.11.2023 um 11:33 schrieb Thomas Chauchefoin via internals: > > For instance, the official Docker image has it on [2]. > > "Official" is relative here. That image is maintained by (the) Docker > (communi

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread Kentaro Takeda via internals
> The migration path is to convert the legacy-encoding PHP files to UTF-8. Please take a look at the following code. This is a part of the code that I am actually maintaining in the latest version of php. ```php https://www.php.net/unsub.php

[PHP-DEV] Inconsistency mbstring functions

2023-12-01 Thread Stefan Schiller via internals
1]: https://www.php.net/manual/en/function.mb-strpos.php [2]: https://www.php.net/manual/de/function.mb-substr.php [3]: https://www.php.net/manual/de/function.mb-strstr.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [PDO] 2 phase commit

2023-12-02 Thread Kentaro Takeda via internals
that PHP itself MAY do nothing (or SHOULD NOT do anything). Regarts. Kentaro Takeda -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Inconsistency mbstring functions

2023-12-04 Thread Stefan Schiller via internals
d bravely pressed on. > > The story ends with an ironic twist. Many years later, I became interested in > mbstring and reimplemented its internals, replacing the libmbfl code with > fresh new code which ran many times faster. The new code was so much faster > that in some cases, t

Re: [PHP-DEV] Inconsistency mbstring functions

2023-12-05 Thread Stefan Schiller via internals
ck > strings derived from user input using mb_check_encoding() before operating on > them. Unfortunately, "should" doesn't count for much. Most users will not do > what they "should". > > 5) Amending the documentation to call out these dangers more clearly w

[PHP-DEV] Re: [RFC][Discussion] NotSerializable attribute

2023-12-09 Thread Dennis Snell via internals
; Please let me know what you think. > > -- > Best regards, > Max Semenik > > --6c4879060c12de83-- > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC][Discussion] NotSerializable attribute

2023-12-09 Thread Dennis Snell via internals
> On Dec 9, 2023, at 4:55 PM, Robert Landers wrote: > > On Sat, Dec 9, 2023 at 4:32 PM Dennis Snell via internals > wrote: >> >> Max, I love this idea. >> >> Would it make sense to flip the design though and add `#[Serializable]` with >> a new `

Re: [PHP-DEV] [Proposal] Add `savepoint()` method to PDO

2024-02-05 Thread Kentaro Takeda via internals
maintain consistency, for example `rollbackToSavepoint(string $name)`. Regards. Kentaro -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] Fw: New error format in php.ini

2019-08-06 Thread long time via internals
Hello, how about add json_errors like html_errors and option for injecting json_errors in response(if response json object(ex. {"success":false}) append new field(ex. php_error {"success":false,"php_errors":{"stack":...}}))?Thanks.

[PHP-DEV] Re: [RFC] [VOTE] Deprecate PHP's short open tags, again

2019-08-07 Thread long time via internals
Hi, i guess need add warning in log if file with extension ".php" not contains "

Re: [PHP-DEV] Re: [RFC] Reclassifying engine warnings

2019-08-29 Thread Aegir Leet via internals
I'm sorry, but if you seriously believe doing something that generates a notice (or warning, or error, ...) is not a bug - you're delusional. That is the very definition of a bug and notices/warnings/errors etc. are the mechanism the language uses to report these bugs to the developer. If doing

Re: [PHP-DEV] [RFC] Reclassifying engine warnings

2019-08-29 Thread Aegir Leet via internals
.08.19 14:43, Claude Pache wrote: Le 29 août 2019 à 13:33, Aegir Leet via internals mailto:internals@lists.php.net>> a écrit : I'm sorry, but if you seriously believe doing something that generates a notice (or warning, or error, ...) is not a bug - you're delusional. No, wh

[PHP-DEV] VCS Account Request: dalehirt

2019-11-19 Thread Dale Hirt via internals
I am the new PHP Windows lead inside Microsoft. My role is to help develop security patches for the Windows builds of PHP. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bump required libcurl version to 7.17.1

2020-01-12 Thread Levi Morrison via internals
something from newer versions (which it doesn't look like we do), anything newer than 7.29 would just cause friction for people building from source. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: VCS Account Request: nicolasgrekas

2020-01-14 Thread Levi Morrison via internals
the quite low bar of contributing a few improvements to our docs or website. To help expedite the process, I recommend visiting the PHP chat room on StackOverflow where quite a few people with internals knowledge (and importantly, can merge contributions) hang out. If you want to hack on the PHP.net web

Re: [PHP-DEV] Who are the current eligible voters?

2020-01-15 Thread Levi Morrison via internals
should not generally be met with resistance. If someone has contributed before, we should be happy to have them back. And all of this doesn't really matter that much; as Nikita pointed out it is pretty easy to get an account, and most people simply don't care to vote. -- PHP Inter

Re: [PHP-DEV] [RFC - discussion] __toArray()

2020-02-04 Thread Levi Morrison via internals
work with the array_* functions that work without references, in which case I think we think this RFC is the wrong approach as it is inadequate for that purpose. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC]

2020-02-11 Thread Levi Morrison via internals
t the time the closure is created, not ran. Imagine passing a private method as a callback; if it was done via `[$obj, 'privatemethod']` then it will fail at runtime, because the scope it's called in doesn't have access. -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] Re[2]: Moving the documentation to git

2020-02-12 Thread Andre Polykanine via internals
nly): @AndrePolykanine Original message From: Andreas Heigl To: internals@lists.php.net Date created: , 7:31:17 AM Subject: Moving the documentation to git Hey Internals and docs-folks On Monday we finished the first important step of moving the documentation to

Re: [PHP-DEV] [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-02-13 Thread Levi Morrison via internals
On Thu, Feb 13, 2020 at 2:48 AM Nikita Popov wrote: > > Hi internals, > > This has been discussed a while ago already, now as a proper proposal: > https://wiki.php.net/rfc/token_as_object > > tl;dr is that it allows you to get token_get_all() output as an array of > PhpTok

Re: [PHP-DEV] [RFC] Explicit call-site pass-by-reference (again)

2020-02-20 Thread Levi Morrison via internals
ct's data. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Support rewinding of generators

2020-02-26 Thread Levi Morrison via internals
On Wed, Feb 26, 2020 at 4:47 AM Nikita Popov wrote: > > Hi internals, > > Generators currently do not support rewinding -- or rather, only support it > if the generator is at/before the first yield, in which case rewinding is a > no-op. > > Generators make it real breeze

Re: [PHP-DEV] Re: [RFC] Validation for abstract trait methods

2020-03-03 Thread Levi Morrison via internals
On Tue, Mar 3, 2020 at 8:01 AM Nikita Popov wrote: > > On Fri, Feb 7, 2020 at 11:32 AM Nikita Popov wrote: > > > Hi internals, > > > > I've sent a mail about this before, but as this turned into a bit of a > > larger change (also allowing "abstract

Re: [PHP-DEV] [RFC] [VOTE] Immutable/final/readonly properties

2020-03-17 Thread Levi Morrison via internals
certain about this, but do not like it. I do appreciate the RFC, but think it needs a bit more work. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Capturing reasons for votes for historical sake?

2020-03-18 Thread Levi Morrison via internals
laced on the RFC authors, not the voters. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Making mysqli easier to use with parameters

2020-03-22 Thread Levi Morrison via internals
ecute(); This is part of my [highest score answer on StackOverflow][1]. Critically, applying the ids array as `...` will handle the by-reference passing. I don't think we need to improve the ergonmics of mysqli for this case specifically, as it's always going to require some dynamic SQL g

Re: [PHP-DEV] Are PECL modules preferable?

2020-03-22 Thread Levi Morrison via internals
a viable model, but it's still useful today. - There is a tool called pickle that is intended to work on Windows and Linux. It doesn't seem recently maintained (but probably still in better shape than pecl). It has too much abstraction for my taste, so I didn't look at its source a l

Re: [PHP-DEV] Improving PHP's Object Egonomics: A broad analysis

2020-03-22 Thread Levi Morrison via internals
or another way to address this space, but it too has drawbacks; there's inherently no free lunch here, I think. > * Compound Property Visibility What is this last one? I searched for "compound" in the article, but did not get many hits, none of which described what it actually _is

Re: [PHP-DEV] [RFC] [DISCUSSION] Type casting in array destructuring expressions

2020-03-25 Thread Levi Morrison via internals
To me, this is almost a good idea. However, I would want regular type checking, not casts. Importantly, regular type checks would fit well on allowing array destructuring directly in function signatures, which would basically be a form of named parameters. -- PHP Internals - PHP Runtime

[PHP-DEV] Removing warning for failed include

2020-03-25 Thread Levi Morrison via internals
require $file; } Weird isn't it? Authors are using require instead of include for the case where failure is tolerated. This is a clear signal to me that include isn't doing its job. The warning gets in the way. Any reasons we shouldn't just remove this warning for PHP 8? -- PHP Inter

Re: [PHP-DEV] [RFC] [DISCUSSION] Compact Object Property Assignment

2020-03-29 Thread Levi Morrison via internals
space, but this is not it. I don't want perfect to be the enemy of good either, but I think this still needs more work. Maybe interested parties (including me) can collaborate off-list somewhere? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC][POLL] Switch expression

2020-03-31 Thread Levi Morrison via internals
On Tue, Mar 31, 2020 at 12:51 PM Ilija Tovilo wrote: > > Hi internals > > A few days ago I opened the discussion on the switch expression RFC: > https://wiki.php.net/rfc/switch_expression > > There's been a fundamental disagreement on what the switch expression > s

Re: [PHP-DEV] [RFC] Allow trailing comma in parameter lists

2020-04-03 Thread Ryan McCullagh via internals
> > they need to be on their own lines? > > Just to say, with descriptive names and type declarations (and now > union types), even a method with just two or three parameters can need > to be wrapped to keep lines below 120 characters ;) Maybe the RFC > could include an exam

Re: [PHP-DEV] Resurrecting named parameters

2020-04-07 Thread Levi Morrison via internals
orried about variadics having named parameters in them. I remember encountering code that assumes that `...$a` is a packed array. Is that assumption always correct today? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Any interest in a list type?

2020-04-22 Thread Levi Morrison via internals
d be > very valuable. > > Though you have much more experience with internals than I do, I think that > building a consensus around a bold new vision for PHP collections would be > a near-Sisyphean task. > > Adding a list/vector type would be a much smaller, more easily definable &

Re: [PHP-DEV] Any interest in a list type?

2020-04-23 Thread Levi Morrison via internals
pecial case these 3 types and would probably want to figure out some way for at least internal classes to have value semantics. Any contrarian opinions there, especially from main php-src contributors like Nikita and Dmitry? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] match expression

2020-04-28 Thread Levi Morrison via internals
t; That handles break; Sadly, it doesn't. That code is valid today: Which outputs: 1 2 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] match expression

2020-04-28 Thread Levi Morrison via internals
On Tue, Apr 28, 2020 at 6:58 PM Larry Garfield wrote: > > On Tue, Apr 28, 2020, at 7:37 PM, Levi Morrison via internals wrote: > > > One issue that was discussed a few weeks ago, and led to the current > > > syntax, was too many variations within the switch syntax; of cou

<    1   2   3   4   5   6   7   8   9   >