Re: [PHP-DEV] Concept: Lightweight error channels

2025-04-28 Thread Thomas Bley
to me that we can achieve the same result using throw, > simply by adding new syntax and capabilities. Yes, there may be some > backward compatibility issues, but is it really something to be afraid of? > Hello, looking into userland code, I often see usages for file, line, class, function, etc. without args. So there are a few options: 1) Set zend.exception_ignore_args by default to 1. 2) Add a new attribute for custom classes: #[\ExceptionSkipTraceArgs] class BreakException extends \Exception implements Exception 3) Implement a new LightException (or similar name) with no args in getTrace(). Regards Thomas

Re: [PHP-DEV] [RFC] Pipe Operator (again)

2025-02-07 Thread Thomas Hruska
t code to be plenty readable and not particularly necessary to span multiple lines, but that's obviously subjective. Just because someone _can_ do something doesn't mean that they should. More than likely, users trying to do pipe-like operations in PHP shouldn't be doing them in the first place. -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original open source projects and counting. Plus a couple of commercial/retail products. What software are you looking to build?

Re: [PHP-DEV] [RFC] [Discussion] Error backtraces v2

2024-12-18 Thread Thomas Bley
is the format I > use in my error/exception handlers for convenience. > > A utility function that stringify the trace would be sufficient, as the > operation is non-trivial. > > —Claude Some years ago, we had another rfc on this topic: https://wiki.php.net/rfc/error_handler_callback_parameters_passed_by_reference Best Regards Thomas

Re: [PHP-DEV] [RFC] Data Classes

2024-11-23 Thread Thomas Bley
— Rob > Thanks for the rfc! >From userland perspective I would prefer to have the cloning more explicitly, >e.g. return clone $this($this->x + $other->x, $this->y + $other->y); or return clone $this(x: $this->x + $other->x); // clone with y unchanged Best Regards Thomas

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

2024-08-02 Thread Thomas Nunninger
g. intercept calls to the file system when running tests where the application was not designed with test-ability in mind. Regards, Thomas

Re: [PHP-DEV] [Early Feedback] Pattern matching

2024-06-20 Thread Thomas Bley
la...@garfieldtech.com Thank you! > $var is *; // Matches anything, more useful in the structure patterns below. maybe also consider: $var is mixed; // Matches anything, more useful in the structure patterns below. > // Array application, apply a pattern across an array > $foo is array; // All values in $foo must be strings > $foo is array; // All values in $foo must be ints or floats +1 Regards Thomas

Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Thomas Bley
)? (see https://github.com/phpstan/phpstan-src/blob/1.11.x/src/Reflection/ParametersAcceptorSelector.php#L562) Regards Thomas

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] [Discussion] Variable Type Declaration Before Usage

2023-11-07 Thread Thomas Gutbier
Var; // 3 $intVar = 'x'; // Fatal error: Uncaught TypeError ``` https://3v4l.org/GFNgp#v8.2.11 Greetings Thomas Gutbier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] Set register_argc_argv to Off by default

2023-11-07 Thread Thomas Chauchefoin via internals
where. For instance, the official Docker image has it on [2]. Outside of performance reasons, this also has a security impact because it eases the exploitation of limited LFI bugs [3] and CLI tools stored under the web root [4]. -Thomas [1]: https://github.com/php/php-src/issues/12344 [2]:

[PHP-DEV] Issue with php.net

2023-10-30 Thread Thomas Nunninger
Hi, sorry, I don't know where to send this. But When visiting https://www.php.net/ I get a certificate error: The provided certificate is for www.caruso.ovh. When visiting http://www.php.net (http only), I get redirected to http://www.caruso.ovh/ Regards Thomas -- PHP Internals

Re: [PHP-DEV] PHP 8 Backward Incompatible Change Notifications

2023-05-18 Thread Thomas Bley
quot;var_dump(0 == (int) '');" php -r "var_dump(42 == (int) ' 42');" php -r "var_dump(42 == (int) '42foo');" gives: bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) Best Regards Thomas > Alan Smithee hat am 18.05.2023 2

Re: [PHP-DEV] self-hosting (compiling context) PHP

2023-04-17 Thread Thomas Krüger
I guess Robert's idea is more like the "pypy" project for Python, which is a fast Python interpreter written in Python. So, there are examples of PHP interpreter/VMs written in PHP: https://github.com/ircmaxell/PHPPHP Best regards, Thomas Am 17.04.2023 20:21 schrieb Thomas H

Re: [PHP-DEV] self-hosting (compiling context) PHP

2023-04-17 Thread Thomas Hruska
le or Externals. Robert Landers Software Engineer Utrecht NL Do you mean something like: https://github.com/cubiclesoft/php-app-server Or something more like Java which is written in Java? In that case, maybe: https://github.com/Corveda/PHPSandbox -- Thomas Hruska CubicleSoft President Cubicl

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

2023-04-12 Thread Thomas Hruska
isn't the right solution though. -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original open source projects and counting. Plus a couple of commercial/retail products. What software are you looking to build? -- PHP Internals - PHP Runtime Development Mailing List To uns

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

2023-04-10 Thread Thomas Bley
I fully understand your point, having more tests is the best thing to do. Unfortunately many old code bases are not written to be tested easily. There is excessive inheritence, traits, reflection, globals, static calls, missing DI, magic functions, feature flags, database dependancies (e.g. 1 re

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

2023-04-10 Thread Thomas Bley
done is mostly silencing deprecation messages, which makes the gap bigger when upgrading to the next major version. So having support for multiple php versions inside one binary would be a great thing, same as modern web browsers still support html 4 even though html 5 is out for so many years.

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

2023-04-10 Thread Thomas Bley
Regarding compatibility promise, I'd also like to mention that things are quite complex now, e.g. https://3v4l.org/VfAr4 has 4 different outputs between php 7.x and 8.x. From userland perspective, having Craig Francis hat am 10.04.2023 14:58 CEST > geschrieben: > > > On 9 Apr 2023, at 23:

Re: [PHP-DEV] [RFC] Working With Substrings

2023-02-15 Thread Thomas Hruska
ll? Or should this just be a possible longer term idea that requires more thought and research and thus the scope should be limited and we put Lydia's idea under Future Scope in the RFC? Other thoughts/comments? Added as Open Issue 10 to the RFC. Thank you for your input. -- Thomas

Re: [PHP-DEV] [RFC] Working With Substrings

2023-02-14 Thread Thomas Hruska
On 2/14/2023 2:02 PM, Rowan Tommins wrote: On 14/02/2023 15:32, Thomas Hruska wrote: Hello Internals, I would like to start the discussion on adding several functions and parameters to existing functions for improved substring handling in PHP: https://wiki.php.net/rfc

[PHP-DEV] [RFC] Working With Substrings

2023-02-14 Thread Thomas Hruska
anticipated could come up, but I'm sure there will be others. Some are technical questions related to the source code while others deal with bikeshedding (function names, etc). -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original open source projects and counting. P

Re: [PHP-DEV] RFC karma request

2023-02-12 Thread Thomas Hruska
Dossche wrote: Dear internals I would like to gain RFC karma for creating and proposing an RFC: "Implement GH-9673: $length argument for fpassthru". Account name: nielsdos Thanks in advance Kind regards Niels -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original op

Re: [PHP-DEV] Official Preprocessor

2023-02-03 Thread Thomas Krüger
ould be an alternative of creating a complete new high ievel language developed in C-programming langage. Best regards, Thomas Am 03.02.2023 20:17 schrieb Rowan Tommins: On 3 February 2023 18:30:00 GMT, "Olle Härstedt" wrote: You'd have to rewrite Psalm or Phpstan in C if you want

Re: [PHP-DEV] [RFC][Vote] Asymmetric Visibility

2023-01-10 Thread Thomas Nunninger
o ensure this on the engine level. To go one step further, I would even ask the heretical question if we should discourage/deprecate readonly once we have asymmetric visibility. ;-) Regards Thomas Am 07.01.23 um 00:37 schrieb Larry Garfield: I am hereby opening the vote on the Asymmetric Vi

[PHP-DEV] A set of 18 functions/changes to improve PHP core

2023-01-06 Thread Thomas Hruska
ser could not be created." Requesting RFC karma for user 'cubic' (cu...@php.net) if possible. Thanks. I assume I'll need to create up to 18 separate RFCs unless one RFC is somehow fine? Not sure how this should be divvied up yet. -- Thomas Hruska CubicleSoft Pres

Re: [PHP-DEV] Revisiting RFC: Engine Warnings -- Undefined array index

2022-12-13 Thread Thomas Hruska
On 12/13/2022 7:15 AM, Derick Rethans wrote: On Mon, 12 Dec 2022, Thomas Hruska wrote: On 12/12/2022 3:52 PM, Derick Rethans wrote: On 12 December 2022 22:20:27 GMT, Dan Liebner wrote: It has been proposed to make the error level of "Undefined index" configurable so that

Re: [PHP-DEV] Revisiting RFC: Engine Warnings -- Undefined array index

2022-12-12 Thread Thomas Hruska
sinesses are waiting for at least the holidays to conclude before performing any major system upgrades if not longer for specific OS releases to drop. -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original open source projects and counting. Plus a couple of commercial/re

[PHP-DEV] What's new in 8.2: DNF types

2022-12-08 Thread Thomas Gutbier
null; -  }    return $entity;    }    } Best regards Thomas Gutbier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] zval_ptr_dtor_str(return_value)

2022-11-27 Thread Thomas Hruska
In ext/standard/file.c, when php_stream_read_to_str() fails, fread() calls: zval_ptr_dtor_str(return_value); Is there ever a situation where return_value can be a string that has to be freed? -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original open source projects and

[PHP-DEV] PHP_STREAM_TO_ZVAL

2022-11-24 Thread Thomas Hruska
actually happens. -- Thomas Hruska CubicleSoft President CubicleSoft has over 80 original open source projects and counting. Plus a couple of commercial/retail products. What software are you looking to build? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https

Re: [PHP-DEV] Casting array to any class

2022-10-15 Thread Thomas Nunninger
y? * Can I forbid a class to be created by casting from an array? When I think about domain entities/aggregates, such a casting would allow to create an invalid state of the object without any checks. (Okay, we have similar issues when recreating them from a database via some ORM.) BTW:

Re: [PHP-DEV] Sanitize filters

2022-10-11 Thread Thomas Hruska
the three main concepts are the important takeaways here, not the referenced userland code. My gut feel is that (a) is true, and there is no point considering what a new function would be called, because we don't know how to implement it. Perhaps the above will help to at least provide s

Re: [PHP-DEV] Error behaviour for max_input_vars

2022-09-14 Thread Thomas Nunninger
): That way the behavior is safe from the start. And people who opt in for "danger mode" can reliably detect if there was some data loss and can deal with it. Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

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

2022-08-14 Thread Thomas Nunninger
/ "RoadRunner is a high-performance PHP application server, load-balancer, and process manager written in Golang." Best regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

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

2022-08-05 Thread Thomas Nunninger
hear that there is a new and simple proposals. One note: In the example about references, I assume the class Baz must extend from Foo. Good luck with this proposal Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [Discussion] Readonly Classes

2022-04-25 Thread Thomas Gutbier
properties, plus disabling dynamic properties. That's the long-and-short of it, yes? Yes, exactly! Should this rfc (https://wiki.php.net/rfc/deprecate_dynamic_properties) be considered here? The attribute #[AllowDynamicProperties] should not be allowed for readonly classes. Thomas -

Re: [PHP-DEV] instance version of match ?

2022-03-29 Thread Thomas Nunninger
Object => ..., >= 42 => ..., !== 5 => ... }; to be equivalent to: $result = match (true) { $value instanceof MyObject => ..., $value >= 42 => ..., $value !== 5 => ... }; Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] LTO support

2022-03-12 Thread Thomas Krüger
think LTO works fine now, but you need projects which have these kind of bottlenecks to benefit from LTO. :) Best regards, Thomas ps: Sorry, for two e-mails, Go, I was not able to press the right answer button in my email program. ^^ Am 12.03.2022 19:17 schrieb Go Kudo: At present, PHP canno

[PHP-DEV] Question: What are requirements for having (new/old) functions within PHP core? :)

2022-03-07 Thread Thomas Krüger
, stay healthy and thanks for your efforts and work on PHP! :) Thomas PHP / C programmer -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Setting to disable the "Undefined array index" warning

2022-02-15 Thread Thomas Nunninger
. Best regards Thomas Am 15.02.22 um 13:31 schrieb Nicolas BADIA: Hi, As it is explained in this ticket https://bugs.php.net/bug.php?id=81417 we use to check if a property exists by accessing it directly like we do in JavaScript. Personally, I subscribe to this coding style and we use it all over

[PHP-DEV] Discussion array_get_type()

2021-12-09 Thread Thomas Bley
PHP_EOL; // DateTime echo array_get_type([new DateTime(), new DateTimeImmutable()]), PHP_EOL; // mixed Having this function would make it easier to check types of arrays and avoid things like array_sum([1, 'a', 'b', 2]); Best Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] PHP 8.1.0 Released!

2021-11-26 Thread Thomas Nunninger
Hey, let's celebrate! Congrats and thanks to all who have been involved in creating this great new release! Best regards Thomas Am 25.11.21 um 19:20 schrieb Patrick ALLAERT: The PHP development team announces the immediate availability of PHP 8.1.0. This release marks the latest

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-23 Thread Thomas Nunninger
tional help to change get_resource_type() to accept resource objects and return the same result as the former, corresponding resource type.) Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] is_literal

2021-06-14 Thread Thomas Nunninger
to think about that issue. But it's probably better than nothing. Perhaps someone has a better idea? Cheers Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Analysis of property visibility, immutability, and cloning proposals

2020-12-29 Thread Thomas Nunninger
, private read, init" write"? When will (a) be initialized? And if there is really a useful case for (a) why is there no "public read, private read"? Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] PHP 8 incompatible change documentation issues

2020-12-03 Thread Thomas Hruska
ristr() and strrchr() can now be empty." I fail to see how this change is useful/correct. In my experience, passing in an empty string for the needle to any of those functions has always been part of a more critical application bug. I'm also not sure why this is in the "Inc

[PHP-DEV] Suggestion: Make all PCRE functions return *character* offsets, rather than *byte* offsets if the modifier `u` (PCRE_UTF8) is given

2020-10-02 Thread Thomas Landauer
and just return byte offsets if the modifier `u` is given. * Or create *new* functions for it: `mb_preg_match_all()` etc. -- Cheers, Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Draft RFC: foreach iteration of keys without values

2020-09-02 Thread Thomas Bley
Hello, I'd also like to propose to use null: [null, null, $username] = getUserData(); foreach ($source as $key => null) {} Regards Thomas > David Rodrigues hat am 02.09.2020 16:24 geschrieben: > > > I think "void" is a good solution and is very clear, com

Re: [PHP-DEV] Making the hardcoded string length limit of Throwable->getTraceAsString() configurable

2020-06-25 Thread Thomas Lamy
llowed to be 0 or more or 15 or more, defaulting to 15) () Thanks, - Tyson +1, wanted this for years but never got around to tackle it Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] About the use of the terms master/slave and blacklist, proposal to replace.

2020-06-15 Thread Thomas Nunninger
asked for concrete examples where people where offended in the context of the PHP project to get an understanding of the issue. If there is no response perhaps we can assume there is no issue? (At least for people on the list? Perhaps for people working in the IT context?) Regards Thomas

Re: [PHP-DEV] About the use of the terms master/slave and blacklist, proposal to replace.

2020-06-15 Thread Thomas Nunninger
the list anonymously. (I'm not sure if we need to raise this questions in a broader context regarding other groups of people. I don't want to open a can of worms. But I don't want to forget about other groups.) Regards Thomas Am 15.06.20 um 17:43 schrieb Daniel Rodrigues

Re: [PHP-DEV] Proposal For Return-If / Early Return / Guard Clause Syntax

2020-05-10 Thread Thomas Lamy
Am 10.05.20 um 18:26 schrieb John Bafford: Hi Ralph, On May 10, 2020, at 11:49, Ralph Schindler wrote: Hi! # Intro I am proposing what is a near completely syntactical addition (only change is to language.y) to the language. The best terminology for this syntax is are: `return if`, "retur

Re: [PHP-DEV] [RFC] Keep type of reference params

2020-05-08 Thread Thomas Gutbier
be consistent if referenced parameters behaved in exactly the same way. Regards, Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Named arguments

2020-05-05 Thread Thomas Bley
github.com/ Hi, I think it's a valid point that changing parameter names can be a BC break. In case the type declaration or the semantic of the parameter changes, it's good to let the code break. I guess that tools for static code analysis will be able to detect parameter name changes? Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Thomas Hruska
lAv8Q -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2020-03-24 Thread Thomas Hruska
s. Doing that would fix so many Windows loader related issues that people have with getting the precompiled PECL extensions to work on Windows (especially with mixed SAPI environments). -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful.

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

2020-03-24 Thread Thomas Hruska
https://github.com/cubiclesoft/ultimate-web-scraper/blob/master/docs/emulate_curl.md On a side note, good PHP userland streams-based implementations are faster than the ext/curl extension. The ext/curl extension also doesn't emit as much useful debugging information. -- Thomas Hruska Cu

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

2020-02-14 Thread Thomas Hruska
uld be better for RAM usage but I can see how that might be complex to implement and largely not worth it since such scenarios will be rare and require the ability to maintain lexer state externally as you mentioned and would only be used by this part of the software. -- Thomas Hruska Cubicle

Re: [PHP-DEV] Re: [RFC] deprecate md5_file and sha1_file

2020-02-11 Thread Thomas Hruska
are completely fine though for other purposes such as detecting single-bit changes in file data where something a little more robust than CRC32 is needed but don't want to waste a lot of storage space. md5() and sha1() already have basic warnings applied. -- Thomas Hruska CubicleSoft Presid

Re: [PHP-DEV] Add viable long running execution model to php 8

2020-01-28 Thread Thomas Hruska
CP/IP servers than they are right now. A lot of careful thought needs to happen prior to writing bind(). Network code is quite notably hard to get right and complexity multiplies with multi-OS/platform support. -- Thomas Hruska CubicleSoft President I've got great, time saving soft

Re: [PHP-DEV] exit() via exception

2019-10-13 Thread Thomas Lamy
Am 11.10.19 um 15:16 schrieb Claude Pache: Le 11 oct. 2019 à 13:05, Nikita Popov a écrit : I'm mainly wondering how exactly we'd go about integrating this in the existing exception hierarchy. Assuming that it is desirable to allow people to actually catch this exception, my first thought woul

Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Thomas Hruska
parser would allow userland startup sequences to detect the problem globally and cleanly terminate the request BEFORE the core application logic is encountered. This shouldn't just be for files, it should be for any time the parser early-terminates input processing but then proceeds to s

Re: [PHP-DEV] Changing PECL signup flow.

2019-09-15 Thread Thomas Hruska
anges should allow extensions to be listed on PECL much more easily, without being too disruptive to the PECL site. Thoughts? Sounds good to me. I thought the php.net account was for incorporating new documentation? -- Thomas Hruska CubicleSoft President I've got great, time saving softw

Re: [PHP-DEV] PHP's declining(?) popularity

2019-09-14 Thread Thomas Hruska
erything I do is in PHP...but very little of it being actual web development. Whenever I bring those things up to people, I get funny looks that say, "PHP does CLI? Huh. Never knew that." -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will fi

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

2019-08-30 Thread Thomas Bley
haviour punishes > future users of PHP for our past mistakes. > > On Aug 28, 2019, at 12:05 PM, Thomas Bley wrote: > > > > Normally every code base has old and new code, some is actively maintained, > > some is probably third-party maintained, some is unmainta

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

2019-08-28 Thread Thomas Bley
new code with sth like declare(strict_variables=1); or declare(SomeNamespace\Foo:strict_variables=1); That way, people can write new code in a better way, include new libraries and upgrade old code piece by piece without any big pressure. Regards Thomas > Matthew Brown hat am 28. August 2

Re: [PHP-DEV] P++: FAQ

2019-08-12 Thread Thomas Hruska
nk showed up near the top of Google Search results for me. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/ -- PHP Internals - PHP Runti

Re: [PHP-DEV] [RFC] Namespace-scoped declares, again

2019-08-12 Thread Thomas Nunninger
ly with the declare statements as defined in composer.json. Not sure: Perhaps you even do not need a new concept of a resolver but could extend the concept of autoloaders? Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2019-08-08 Thread Thomas Hruska
can't represent a class of an underserved population to bring forth awareness, justice, or action. In many cases, they are in better positions with sufficient contacts to reach the right people to bring forth such things that would otherwise never come to light. -- Thomas Hruska CubicleS

[PHP-DEV] RFCs and voting - feature requests + an oddity

2019-08-06 Thread Thomas Hruska
umn appears as "username (username)". Is that intentional, some kind of software limitation, or a bug? -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http

Re: [PHP-DEV] [RFC] Deprecations for 7.4 - specifics

2019-07-08 Thread Thomas Hruska
in the mix too. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscri

Re: [PHP-DEV] [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets

2019-07-03 Thread Thomas Hruska
://github.com/cubiclesoft/ultimate-web-scraper/blob/master/support/tag_filter.php If deprecated, at least the linter will pick up the problem areas and flood log files. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesof

Re: [PHP-DEV] [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets

2019-07-03 Thread Thomas Hruska
URL, as shown, doesn't go anywhere. Looks like it should be this: https://wiki.php.net/rfc/deprecate_curly_braces_array_access -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my softw

Re: [PHP-DEV] [RFC] Escape PDO "?" parameter placeholder

2019-07-02 Thread Thomas Hruska
On 7/2/2019 6:07 AM, Nikita Popov wrote: that it also exists elsewhere). The RFC argues against this because it makes writing a literal \? harder (which would be ?), but I think that \\? should result in the correct string. ? adds in an extra backslash. -- Thomas Hruska CubicleSoft

Re: [PHP-DEV] [PATCH] Add configuration value to enable/disable stack trace logging

2019-06-17 Thread Thomas Lamy
ustomer/project/" no longer in the trace would be more readable for the developer, and, in case somebody has dispay_errors=on, a bit less of information disclosure. Just my 2c Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Trigger rebuild of DLLs for PECL extensions?

2019-05-11 Thread Thomas Hruska
ppens. Regards Anatol That was quick. Looks good now. Thanks! -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/ -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Trigger rebuild of DLLs for PECL extensions?

2019-05-11 Thread Thomas Hruska
On 5/11/2019 4:58 AM, Anatol Belski wrote: Hi, -Original Message- From: Thomas Hruska Sent: Saturday, May 11, 2019 1:39 PM To: PHP Development Subject: [PHP-DEV] Trigger rebuild of DLLs for PECL extensions? Is there a way to trigger the Windows DLL build process for a PECL extension

[PHP-DEV] Trigger rebuild of DLLs for PECL extensions?

2019-05-11 Thread Thomas Hruska
Is there a way to trigger the Windows DLL build process for a PECL extension without publishing a new release? -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful:

Re: [PHP-DEV] Revive Number Format Separator RFC

2019-05-02 Thread Thomas Punt
> On Wed, May 02, 2019 at 03:00 AM Bishop Bettini > mailto:bis...@php.net>> wrote: > > Great, thanks Tom. Theodore and I are polishing the RFC, then will tackle the > implementation. Besides the necessary merge fixes, are there any > changes/improvements you specifically want to make in the new

Re: [PHP-DEV] Revive Number Format Separator RFC

2019-05-01 Thread Thomas Punt
Hi! > On Wed, May 01, 2019 at 01:13 AM Bishop Bettini wrote: > > On Tue, Apr 30, 2019, 19:14 Theodore Brown > > > On Tue, Apr 30, 2019 at 3:59 PM Bishop Bettini wrote: > > > > > Excellent. I hope we can make the case this time. Please > > > request Wiki karma [1], and we'll iterate on it there.

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

2019-04-28 Thread Thomas Hruska
with short open tag support disabled and/or removed to convert from short open tags to full open tags and, in fact, has already been done. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you fin

Re: [PHP-DEV] Revive Number Format Separator RFC

2019-04-27 Thread Thomas Punt
Hi! > On Fri, Apr 26, 2019 at 4:30 PM Theodore Brown wrote: > > > On Fri, Apr 26, 2019 at 6:10 AM Rowan Collins > > wrote: > > > > I'm not particularly against this proposal, but I'm not sure how often I'd > > use it. > > How often you use numeric separators depends on what you are doing. > I d

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

2019-04-25 Thread Thomas Hruska
) for the secondary vote to remove PHP's short open tag in PHP 8. This passes in favor with 74%. Thanks for everyone who voted on this issue. Best regards George P. Banyard By the way, has anyone thought about the GDPR impact of this change? -- Thomas Hruska CubicleSoft President I&#x

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

2019-04-25 Thread Thomas Hruska
On 4/25/2019 12:57 AM, Côme Chilliet wrote: Le jeudi 25 avril 2019, 00:11:42 CEST Thomas Hruska a écrit : So I built a tool that meets the above minimum criteria and have already run it against a fairly extensive codebase (and have shared the tool with a few concerned folks - you've al

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

2019-04-25 Thread Thomas Hruska
On 4/25/2019 12:26 AM, Stephen Reay wrote: On 25 Apr 2019, at 14:11, Thomas Hruska wrote: sed-based solutions do NOT work. Neither of the two recommended options to date on this list are valid recommendations for serious software deployment managers. I have no issue with suggesting tools

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

2019-04-25 Thread Thomas Hruska
x27;-ask' mode and let it carefully modify a few thousand files by mashing my 'Y' key a bunch of times pausing briefly to look at interesting changes (which really only took a couple of hours and probably lowered the lifespan of that key on the keyboard a bit). I hope others c

RE: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags

2019-04-24 Thread Thomas Bley
Hello, I understand that breaking changes always need extra work, but in this case I think it's a quick change. On my code base (mostly legacy with 1.8m lines), I ran this and got 10 matches to check: grep -rin " vsura...@gmail.com hat am 24. April 2019 um 15:41 geschrieben: > > > FWIW, > >

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

2019-04-11 Thread Thomas Hruska
dge of passing/failing at the moment and could go a couple of unusual directions as already noted elsewhere. This is probably the most interesting RFC *vote* to happen in a long while. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful.

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

2019-03-25 Thread Thomas Hruska
but '' would not - the latter, IMO, being more readable anyway. This doesn't change the fact that I'd still want a utility to automatically locate upgrade issues. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful.

Re: [PHP-DEV] print with newline

2019-03-10 Thread Thomas Punt
> From: Steven Penny > Sent: 04 March 2019 15:30 > To: internals@lists.php.net > Subject: Re: [PHP-DEV] print with newline > > I think the best option is a new function like "puts" or "posix_puts". I'm fairly neutral on the feature, but I disagree with this being a function. It should be a langua

Re: [PHP-DEV] New website for the PHP project

2019-02-04 Thread Thomas Nunninger
Hi Thomas, I regularly go to the php.net homepage for the live documentation search function just to make sure I'm using functions correctly.  My most frequent search is the date() function for the % code list.  One of these days I'll print out that docs page instead of looking i

Re: [PHP-DEV] New website for the PHP project

2019-02-04 Thread Thomas Hruska
comprehend code example. Uh...Get Started?" First time visitor: "Okay, that's great. Now tell me what is PHP in words I can understand and what can I use it for and is it popular?" A code example rarely, if ever, makes a good first impression. -- Thomas Hruska Cubicl

Re: [PHP-DEV] [RFC] New custom object serialization mechanism

2019-01-24 Thread Thomas Bley
ns! > * __sleep() and __wakeup() > * Serializable > * JsonSerializable > * __set_state() To me it's not clear why we need all these methods, for example: $a = new A(); $aSerialized = serialize($a->toArray()); $aRestored = A::createFromArray(unserialize($aSerialized)); Apart from security problems, problems with versioning and unreadable data in databases, I don't see many benefits from using serialize()/unserialize(). Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Deprecation ideas for PHP 8

2019-01-23 Thread Thomas Hruska
r hard drives via your application logs with deprecation warnings and crash your servers. Have fun sorting that mess out!" Finally, barring a serious security vulnerability, keywords should be viewed as permanent fixtures of the language. They can't be deprecated. That's why th

Re: [PHP-DEV] Proposal: change precision for output functions

2019-01-07 Thread Thomas Bley
.org/ldgo8): Output for 7.1.0 - 7.3.0 14 -1 {"price":45.99} 0.80.7999 Output for 5.3.6 - 5.6.38, 7.0.0 - 7.0.33 14 17 {"price":45.99} 0.80.8 what is the preferred way to upgrade from php 5.6 to 7.x in order to get the same results? Regards Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Don't silence fatal errors

2018-11-27 Thread Thomas Hruska
On 11/27/2018 8:26 AM, Nikita Popov wrote: On Tue, Nov 27, 2018 at 2:20 PM Thomas Hruska wrote: On 11/26/2018 2:42 PM, Nikita Popov wrote: Hi internals, When the silencing operator @ is used, the intention is generally to silence expected warnings or notices. However, it currently also

Re: [PHP-DEV] Don't silence fatal errors

2018-11-27 Thread Thomas Hruska
ler to restore previous (and almost correct) behavior is a bit obnoxious. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/ -- PHP Intern

[PHP-DEV] php.net frequently hangs

2018-09-08 Thread Thomas Hruska
he site gets stuck like this is ~20 seconds. If I'm impatient, I can try again and it usually loads the page right away. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software use

Re: [PHP-DEV] On not rushing things at the last minute

2018-07-10 Thread Thomas Hruska
ority over new features. Bug #73535 is still open, unaddressed, and unmitigated... -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/ -- PHP

Re: [PHP-DEV] Strict switch statements

2018-06-14 Thread Thomas Bley
trictures are implemented nowadays. That is, something like > > match ($expr) { >"foo" => {...}, >"bar" | "baz" => {...}, > } > > or similar. This might need some more design work to ensure forward > compatibility with potential future a

  1   2   3   4   5   >