Hi,
Am 02.08.24 um 18:51 schrieb Ilija Tovilo:
...
There are a few noteworthy downsides:
* Unqualified calls to functions in the same namespace would be
slightly slower, because they now involve checking global scope first.
I believe that unqualified, global calls are much more common, so this
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 - PHP Runt
Hi,
I was looking at the current vote of this RFC and I stumbled upon
Theodore's remark that the RFC feels unfinished as it can't be used in
conjunction with readonly properties/classes.
The RFC disallows (for the time being) the mixing of readonly with
explicit asymmetric visibility. And I
Hi,
Am 15.10.22 um 13:18 schrieb Gianni Gentile:
Hi,
in my every day experience, using custom DTO classes and different API,
I often write code to instantiate my objects from associative arrays.
What are your thoughts on introduce the `(AnyType)` cast to instantiate
objects from associative
Hi,
In summary, I believe this can only be solved inside of PHP itself, by
allowing to configure a way for `max_input_vars` to abort the request
instead of truncating the input.
The options I see feasible are:
- A new ini setting `max_input_vars_abort` (default to 0), which, if set
to 1, will
Hey,
Am 14.08.22 um 14:29 schrieb Paul Dragoonis:
Hey,
So one thing that keeps me up at night (for a while now) is resisting the
urge not to venture down a rabbithole of writing code which is loading the
PHP runtime from Rust/Golang (up to MINIT)
And then at RINIT time, we load the right SAPI
Hi,
Am 05.08.22 um 19:08 schrieb Larry Garfield:
Ilija Tovilo and I are happy to present the first new RFC for PHP 8.3:
Asymmetric Visibility.
https://wiki.php.net/rfc/asymmetric-visibility
Details are in the RFC, but it's largely a copy of Swift's support for the same.
Great to hear that th
Hi,
Am 29.03.22 um 14:34 schrieb Rowan Tommins:
On 29/03/2022 11:59, Robert Landers wrote:
$object instanceof AnotherInterface => 'bar',
We can see that `SomeInterface` will resolve the interface and not the
constant.
Yeah, the instanceof operator is magic in that regard - it has a
Hi Nicolas,
as far as I understand, adding new ini settings is not the way to go as
this would mean that your code behaves differently on different
environments.
Two suggestions:
* Write your own error handler that ignores those errors.
* Try some tool like Rector to rewrite your code.
Bes
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 major releas
Hi,
Am 22.09.21 um 15:29 schrieb Matthew Weier O'Phinney:
Here's the issue: while overall, I like the move to resource objects,
introducing them in a MINOR release is hugely problematic.
Previously, you would do constructs such as the following:
if (! is_resource($resource) || get_resourc
Hi!
class UserPreferences {
private DB $db;
function getColor(): string {
$preferredColor = $this->db->getColor();
if ($preferredColor === 'light') {
return '#fff';
}
if ($preferredColor === 'dark') {
return '#000';
Am 28.12.20 um 21:23 schrieb Larry Garfield:
There's been a number of discussions of late around property visibility and how
to make objects more immutable. Since it seems to have been well-received in
the past, I decided to do a complete analysis and context of the various things
that have b
Hi,
Am 15.06.20 um 21:14 schrieb Stanislav Malyshev:
Hi!
I was surprised by the many negative responses: Partly just discussing
the term "blacklist" that is perhaps not the main issue. Or telling
people how they should feel and understand words.
Nobody tells you how to feel. But when you cla
Hi,
I was surprised by the many negative responses: Partly just discussing
the term "blacklist" that is perhaps not the main issue. Or telling
people how they should feel and understand words.
Personally, I don't have any issues with "blacklist" - as I do not see
any historical reason for th
Hi,
Am 12.08.19 um 10:26 schrieb Nikita Popov:
On Mon, Aug 12, 2019 at 10:17 AM Nicolas Grekas <
nicolas.grekas+...@gmail.com> wrote:
Le lun. 11 déc. 2017 à 14:44, Nikita Popov a
écrit :
Some time ago I introduced the following proposal for namespace-scoped
declares:
https://wiki.php.
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 it up every
ti
Hi,
On 12/02/2016 02:54 PM, Matteo Beccati wrote:
On 02/12/2016 08:36, Thomas Nunninger wrote:
Hi,
So, if I only want to get the emulated prepared statement, I have to do
ob_start()/ob_get_clean(), then use a regexp to fetch it ? I want v1
back T_T
I second that. Why do you print it
Hi,
So, if I only want to get the emulated prepared statement, I have to do
ob_start()/ob_get_clean(), then use a regexp to fetch it ? I want v1
back T_T
I second that. Why do you print it directly? Wouldn't it be better to
return a structured array with the information needed? If needed, you
Hi,
On 10/04/2016 01:33 PM, Pascal KISSIAN wrote:
Hi everybody,
I have an application where a small file is included at multiple places.
So far so good.
The problem is that this include consists in a small piece of code which is
inside a multi-level loop.
The include is done about an a
Hi,
On 09/06/2016 09:14 AM, Sebastian Bergmann wrote:
Am 05.09.2016 um 12:13 schrieb Derick Rethans:
You can't really ship PHP without a way to install extensions though!
Why not?
IMHO, PHP should not be shipped with any tool for installing PHP
components (PEAR Installer, Composer, ...) or e
Hello,
shouldn't it be possible to return null as new key? That way you say:
Use the next free integer index.
Not sure if returning null is wanted (as it could hide errors in the
callback) or needed in some real world use cases. But it would be more
in sync with $a[] = ...
Regards
Thomas
Hi Andrea,
On 01/14/2015 11:20 AM, Andrea Faulds wrote:
Hi Thomas,
On 14 Jan 2015, at 10:08, Thomas Nunninger wrote:
$i = 1;
$a = myFunc( $i );
declare(strict_typehints=TRUE);
function myFunc( float $f )
{
return otherFunc( $f );
}
function otherFunc( float $f
Hi,
On 01/14/2015 10:32 AM, Andrea Faulds wrote:
Hi Leigh,
On 14 Jan 2015, at 09:17, Leigh wrote:
I really don't like this behaviour being changed at the call site. If
I design a function that I _know_ should only take a string, then I
want it to be an error if the user supplies anything els
On 08/16/2014 12:52 AM, Pierre Joye wrote:
On Sat, Aug 16, 2014 at 12:49 AM, David Soria Parra wrote:
On 2014-08-15, Pierre Joye wrote:
Let me summerize a few things that have come up:
(1) phpng doesn't justify PHP7
It does. It's a complete new engine. It has performance improvements
Hi Dan,
On 07/17/2014 02:12 PM, Dan Ackroyd wrote:
Thomas Nunninger wrote:
- "scalar parameter casting" should just be a convenience for coding:
function foo( (int) $i, (string) $s )
{
}
is the same as:
function foo( $i, $s )
{
$i
Hi,
On 07/16/2014 10:45 PM, Andrea Faulds wrote:
On 16 Jul 2014, at 21:43, Zeev Suraski wrote:
anything this RFC permits will
be permitted by zpp, it's the reverse that isn't necessarily true.
Right, so it needs to be fixed. It makes no sense to force a new agenda
on the language that's i
Hi,
On 07/17/2012 05:40 AM, Nicholas Curtis wrote:
> Great Idea, would love to see current standard library in a legacy
> namespace and a new standard library implemented as methods of
> primitive types.
The idea to separate old and new behaviour has some charm.
> $string = "Hello, World";
> ec
Hi,
sorry for late comment.
You write: "The ST or DST modifiers can only be used when specifying times
during the backward transition period. Using the modifiers at other times
will throw an exception in object-oriented style code while procedural style
code will return false without triggerin
Hi,
if it comes to auto-converting (that's different from existing type-juggling):
wouldn't it be nice, to change type-juggling as well?
I know about BC breaks here, thus it would need till PHP 7 or so to become the
default behavior. But I think, BC breaks mainly occur in the cases where
type-
Hi,
another end-user perspective:
Am Montag, 24. Mai 2010 14:12:41 schrieb Zeev Suraski:
> At 14:48 24/05/2010, s...@geleia.net wrote:
> >Adding strict typing would be the largest
> >
> > > inconsistency in PHP's core syntax, ever.
> >
> >I disagree. The === operator already checks the type of th
31 matches
Mail list logo