Hi there, it's a legacy function, and I don't think we can afford or
we should consider this bc break. Though I don't use this function
myself and also prefer other methods of input validation, still there
are a lot of people that use it. Renaming this to is_empty will bring
a bc break. However,
Hi Kamil,
Thank you for your response. I shall sure create an issue and will
update in this threat.
On 3/9/23, Kamil Tekiela wrote:
> Hi Hamza,
>
> If you encounter a bug, please create a GitHub issue with reproducible
> steps. Your description of a program crashing is not actionable, as we
>
not receive a warning of passing the wrong parameters.
I would appreciate it if you could look into these issues and provide
me with any suggestions for solutions. Thank you for your prompt
attention to this
matter.
Best regards,
[Hamza Ahmad]
--
PHP Internals - PHP Runtime Development Mailing
HI Rafael,
I am happy to here that you guys are working on this. I once thought
of writing such a solution myself for PHP when I learnt it compiled c.
However, I could not manage time. I am positive it will be useful.
NVM< I don't know why Google has marked your email as spam. Likely,
that's
Hello,
If we keep the idea of using reflection aside, I still have a reason
to consider readonly flag for private properties. There are two main
uses I consider of readonly properties: prevention of property
modification from the public scope and the securing the property from
losing an important
ll be left for the future scope.
Regards
Ahmad
On 9/30/22, Olle Härstedt wrote:
> 2022-09-30 17:16 GMT+02:00, Larry Garfield :
>> On Fri, Sep 30, 2022, at 4:04 AM, Olle Härstedt wrote:
>>> 2022-09-29 5:08 GMT+02:00, Hamza Ahmad :
>>>> Hi Olle,
>>>>
>>
Sadly, I am disappointed with the way this suggestion has been looked down on.
On 9/29/22, Olle Härstedt wrote:
> 2022-09-29 12:33 GMT+02:00, Ryan Jentzsch :
>> `number` type But frankly this seems a bit silly and reminds me too much
>> of
>> JavaScript.
>
> That's just an example. You can also
Hi Olle,
I appreciate your idea of introducing a similar concept of typedef.
What if you write an RFC explaining that concept. I can join you
however in co-authoring this request.
Seriously, I have had issues with writing such type again and again.
If you look at mixed type, it is indeed an
> We spend a lot of time to increase limits for uploads file in PHP.
For a lot of time, I assume you are using a web host that does not
allow modification to INI file directly or using INI functions, and
you have to contact your host provider for that change. Otherwise, it
is not that difficult to
A yes from my side.
On 3/4/22, Joe Watkins wrote:
> Morning internals,
>
> Today, some friends of the project, people we consider leaders even, are
> waking up in a war zone.
>
> They are living an unimaginable horror, and as I sit here and type, I fight
> back tears for them ... I am afraid for
HI Nikita,
What if you consider this instead? Rather allowing STD class as an
exception to dynamic properties, why not introduce STDAbstract?
```php
interface STDClassInterface
{
public function __get(string $name) : mixed;
public function __set(string $name, mixed $value = null) : mixed;
/* *
I am not going to critique the RFC; rather, I say that this RFC needs
a fresh rewrite because I find more like it a set of instructions. The
proposal needs to be a detailed one. It seams as if it is written
hastily.
As Tobias has mentioned that he has been reading the RFCs for years,
there is a
> Sounds like we need an RFC to make it clearer how voting karma for the
> RFC process will be granted in the future.
Yes, I agree. I would love to join that team, which is going to
prepare this RFC. Plus, I have shared some of the ideas in the
previous message.
Best
Hamza
On 7/19/21, Andreas
Hello all,
Tobias wants to obtain a right that lets him represent the community
in the RFCs' approval. Tobias, as for the feature requests, you can
discuss and propose your own ideas. You can also obtain RFC karma to
propose your ideas and contribute to the language.
As for the people that are
Hi all,
While I was reading through the discussion, I found a question related
to the conflict of constant names and functions names. In other words,
`strlen` can be both a constant name and a function name. Thus, in
pipe RFC, it can go confusing whether it is a constant or a function
name when
you
Hamza Ahmad
On 7/1/21, Nikita Popov wrote:
> Hi internals,
>
> I have opened voting on https://wiki.php.net/rfc/readonly_properties_v2.
> The vote closes 2021-07-15.
>
> See https://externals.io/message/114729 for the discussion thread on this
> proposal. I
Being positive is good but relying on others is not. If you really
believe that your idea is worth considering, I suggest revisiting it.
You can ask your self the following questions:
- How is it useful?
- what special thing does it provide with that the current
implementation does not?
-
Hi Manuel,
If I am not wrong, is not your proposal similar to python's
triple-quoted? It is confusing; don't do this. Instead, current syntax
are sufficient. Second, (`) have special meaning in PHP. It is used to
execute commands on a machine. Why do we have confusing syntax?
Best
Hamza Ahmad
to register on the wiki, I received this message "That
wasn't the answer we were expecting". Please also tell me what it was and
the way how I can resolve this.
Best Regards
Hamza ahmad
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
> #justsaying
Mike, most of the developers in PHP have their background from web
development, and they need easier solutions to their problems. As for
your suggestion of including all suggested names in the RFC, I shall
do this, too!
Like others, I do have a dream for PHP that it may become an
To George
> substring of the original string. And by that logic left and right are
> actually linguistically incorrect due to languages being read Right to Left
> or Top to Bottom.
Thanks George for pointing out an important aspect regarding the
choice of names. Will you consider a vote if there
> I can also imagine bikeshed...
This is what can be discussed apart from whether these function come
to PHP. I am waiting for the other voices; there is surely someone
that can come up with a more creative name, a name that is short yet
descriptive.
> str_left_part/str_right_part is just what
this scheme because it can go against PHP's naming schemes. I
know some of the string functions don't follow str_* and s* naming
scheme. We can let democracy decide the right name. If PHP later has a
string object, dev(s) can make left and right as its methods
respectively.
Best
Hamza Ahmad
On 6/24/21
B functions, I
am sure if these functions are added to core, they will also acquire
their place in mb_* functions list.
Because the time is approaching, what do you all suggest whether this
request requires an RFC?
I thank you all for providing me with your opinions. I wish this
thread leads a positive
ack on
my suggestion. I am also positive that my request will be added to 8.1. I
thank you all for reading through my message and dropping a word.
Best Regards
Hamza Ahmad
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
array-related operations
on objects, I prefer these two syntaxes:
1. `array(a: 1, b: 2, c: 3);`
2. `[a: 1, b: 2, c: 3];`
Best Regard
Hamza Ahmad
On 6/22/21, tyson andre wrote:
> Hi Mel Dafert,
>
>> >I would prefer an improved syntax for creation of anonymous objects. This
>>
HI Larry Garfield,
Do you have a plan to further extend this rfc? I mean, what if one
could typecast place holders? Broadly speaking, what if one could
perform some operations, such as arithmetic, bitwise, and type cast as
said above?
`$foo = bar((type) ?);`
`$foo = bar(? & 0xFF);`
Best
H
> should array object be passed by value or by reference?
> If we are to have array object, will it be exceptional?
By value. Because array is a data type, we are talking about making it
behave like object. In JavaScript, Arrays, Strings, and Numbers are
objects; they have their respective
Hello,
I read about this extension times ago but didn't know whether it had
been public. If Nikita is reading this, I request him to think of
proposing a modified version of this extension bundled with PHP.
In simple words, he can hide the function that registers a class that
serves as a prototype
(extension_loaded('readline'))`. It said, `bool(true)`.
Note: my PHP version (PHP_VERSION) is 8.0.5.
Any type of help will be appreciated.
Kind regards
Hamza Ahmad
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
re several syntax to choose from, a
separate vote will only be held for this.
Best
Hamza Ahmad
On 4/7/21, Saif Eddin Gmati wrote:
> Hello Hamza,
>
> I think this is something that has been discussed here before.
>
> function types already exist in HackLang:
> https://docs.hhvm.com
love to come up with syntax
and implement this?
I am curious to see the feedback.
Regards
Hamza Ahmad
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
Hi,
I have two questions regarding the RFC.
1. Why not provide an another optional attribute that allows to
specify the end of line eliminator?
2. Why don't you configure Unix end of line in INI file?
These additional steps will help users choose their favorite end of
line for their projects. The
that email is not appearing on externals. I will
make sure that next time I post an external URL that contains the changelog and
do not clutter the mailing list.
I am again thankful to you all!
Best
Hamza Ahmad
-Original Message-
From: Mike Schinkel
Sent: Thursday, March 11, 2021 10:05 PM
values that are also typed.
Cheers!
From: Victor Bolshov
Sent: Thursday, March 11, 2021 3:00 PM
To: Hamza Ahmad
Cc: Rowan Tommins ; internals@lists.php.net
Subject: Re: [PHP-DEV] Honour the Default Value of 'return' Statement According
to the Function Signature
IMO this feature would
of multiple literals. The
literal can be a simple literal, such as, "unknown" 0, and a constant
expression, like self :: MSG_UNKNOWN. It will help maintain the multi-language
scripts.
I hope I have been able to make my stance clear.
Best
Hamza Ahmad
-Original Message-
From: Row
36 matches
Mail list logo