.
It's side-tracking, but I'd like to note that I would vote against such
an idea.
I don't have a strong opinion on the proposed RFC yet.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net
since PHP 8.1. Therefore, there is currently no
precedent that can be compared on the same terms as `BCMath\Number`….
Enums have 'value' and 'name' properties. Although they are kinda special.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer
ps. that also means withScale(null) should be possible.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
n is more clear here, and I think it applies to all
cases you mentioned, including div or pow. If you know you need to
change the scale just add ->withScale(X) before.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [htt
{}
public function sqrt(): BcNum {}
but I have no clue about BCMath.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https
reading https://wiki.php.net/rfc/namespaces_in_bundled_extensions
again I see it is a perfect case to apply it. While it's not a must, I
think we should go with BCMath/Number.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https
', I guess.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
_get_params($context)['response_headers'];
Or something like that. I don't know.
While on this I found out that we already have stream_get_meta_data()
and `wrapper_data` there. So, maybe we should/could make it more unified.
Maybe it should be mentioned in the RFC.
--
Aleksander Machniak
Kolab Groupware Dev
Hi,
I was under impression that bugs.php.net was supposed to be phased out.
I.e. made read-only or something.
https://bugs.php.net/bug.php?id=78628=1 proves that it's not the
case and I'm receiving annoying spam recently.
--
Aleksander Machniak
Kolab Groupware Developer[https
y, do you
know you still have voting rights?". I can see that some people might
not like the idea of bringing more new-old voters, though.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://rou
t analysis for this section either.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - P
On 16.11.2023 10:21, Daniil Gentili wrote:
No problem, I can change the defaults but remove the fatal error if
jit=non-zero and jit_buffer_size=0, can I still turn it into a warning
though?
Whatever you do, please mention it in the Proposal section of the RFC.
--
Aleksander Machniak
Kolab
that currently, most likely, none of
such proposals would get 2/3 of votes.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https
for that. The RFC
is not clear either.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - PHP
could be class names with namespace.
Types should also support visibility (public|protected|private) when in
class/trait context.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
or not. For example, here int
could be cast to string in non-strict types mode.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https
array, just to do some error checking.
Please, no. What's wrong with count() or empty()?
+1 for array_first() and array_last(). The only problem is probably a
big BC break. I myself have array_first() defined in my framework.
--
Aleksander Machniak
Kolab Groupware Developer[https
was
introduced in,
- maybe existence of this constant should be mentioned in the RFC.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https
, setTime() method already exists (not the best name), so addition
of setDate() and setDateTime() will make it worse.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net
tps://hackage.haskell.org/package/groupBy-0.1.0.0/docs/Data-List-GroupBy.html>.
Sorry, I'm sick right now and have no clue, but how does it relate to
https://wiki.php.net/rfc/array_column_results_grouping
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube W
On 29.05.2023 14:12, Aleksander Machniak wrote:
In "Property name expressions" section's first code example I think you
intended to do `clone $self` (not `clone $this`) inside the foreach() loop.
Also, I have a feeling that it would be better to implement `clone
$object with $
e $self` (not `clone $this`) inside the foreach() loop.
Also, I have a feeling that it would be better to implement `clone
$object with $properties` syntax first and if that is accepted think
about expressions support. It's not a strong feeling though.
--
Aleksander Machniak
Kolab Groupware Dev
On 27.04.2023 23:28, Máté Kocsis wrote:
https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures
stream_context_set_option() should be removed from the Future Scope as
it already is being changed by the RFC.
--
Aleksander Machniak
Kolab Groupware Developer[https
n the table, no need for a new
keyword.
$point = clone($point, x: $x, y: $y, z: $z);
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://
$point with (x: $x, y: $y, z: $z);
$point = clone $point with (...['x' => $x, 'y' => $y, 'z' => $z]);
or $point = clone($point, x: $x, y: $y, z: $z);
Also, I didn't see it mentioned, but maybe for future scope, these new
arguments should be passed to __clone().
--
Aleksander Machn
$callback, int $type, bool $prepend = false):
void;
then
Loader::register($callback, Loader::TYPE_CLASS | Loader::TYPE_FUNCTION);
Or sth like that. My 2c.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net
methods.
I guess it would be tricky with calls to the parent magic method when
you need the "outer calling scope", but I'd like to see some reasoning
in the RFC.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://rou
these with is_json().
On the other hand maybe the function should be as simple as possible,
but I'd like it to be considered.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net
s citizen. Therefore I will vote against this
current implementation.
I voted No for the same reason.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC
;Setting a part to a null value will effectively remove that part's
contents", but the $content argument is of type string not ?string.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [h
ts can see this makes sense.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - PHP Runtime Developme
lso a win.
Ok, this was my take, now I will shut up.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Int
mo, the BC
break is much less problematic than the one we're trying to solve here.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://
inconsistency" or sth like that, as this section isn't really much about
the documentation, rather the current state.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
--
a dozen or so
occurrences of option 3 and none of option 4. Plus a few of option 3 in
my projects' code (that I'm fixing right now). That includes some
popular packages.
That being said, I think I will be +1 on this RFC.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org
ns with $a + $b * $c? there's no
clear answer
- why not allow the tilde operator to be used in a different context?,
e.g. in PostgreSQL it is used as a regular expression match, e.g.
$a ~ '^[a-z]+$'
- the Implied Operators table does not mention ~= operation.
- I don't like the Reflection API ch
not get much attention yet.
Regards
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - PHP Runtime
On 22.09.2021 13:21, Go Kudo wrote:
> The voting phase for the following RFCs will begin as soon as two weeks
> have passed.
The RFC title is not correct English (missing "to" or "into"). The first
paragraph in Introduction is also hard to read.
--
Aleksander Machniak
name. And as we already have
http_build_query() I would rather see http_parse_query().
The RFC should target 8.2.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
yone. I suggest to remove this point.
I think the voting would need to be in a form we're using for RFCs,
counting votes on mailing list will be error-prone and time-consuming
(you don't know who's a voter).
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube
nsion.
Another option might be PHP_INI_PERDIR (for both). Why? Because that's
what's used for (similar) openssl extension configuration.
ps. anyway, right now I'm on -1 for the new config option.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail De
ly don't need another setting.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - PHP Runtime Dev
=-1, RCVD_IN_BL_SPAMCOP_NET=1.347,
RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001,
RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.
dn't go that far with this (possible BC break), maybe a future scope.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpre
o
a Closure, but I'm not sure now:
$fn = clone $this->myFunc;
or is this a heresy? ;)
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolab
// empty
}
}
The question to the proposal. Will this new syntax apply to:
1. all methods
2. all constructors
3. only to constructors with property promotion?
I think 3 makes most sense here and is less contentious. So, just be
sure to specify this in the RFC.
--
Aleksander Machniak
On 19.04.2021 17:03, Gabriel Caruso wrote:
> You need to reset it: https://externals.io/message/113981#113981 :)
Thanks. All's good now. I guess you can add me to the list of users
confused by the password change.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.
I was about to log in to vote on some RFCs, but I cannot log in. I reset
the password twice, the new passwords didn't work either.
My username is 'alec'. Could someone verify that?
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https
On 05.04.2021 04:11, €– ”k”k wrote:
> https://wiki.php.net/rfc/direct-execution-opcode
I voted No because I can't imagine anyone voting Yes to a RFC as badly
written as this one.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [ht
to-capture. E.g. `procedure` or
`macro`.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internal
ion. Or the
intention was different.
ps. to Kamil,
We use utf8_encode() to make the string safe to be put in utf-8 database
column/table. We use utf8_decode() to convert that back to what it was
before.
The tests prove that the conversion is lossless.
--
Aleksander Machniak
Kolab Groupware Develo
;
$this->assertSame($str, utf8_decode(utf8_encode($str)));
Could anyone point to a sample input that will not work with my use-case?
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
--
aves as expected.
I see it's a subtype, I don't get why. Wouldn't it be better to be a
separate type so return type covariance is not allowed (as it is with
void)? Was it a design decision or a side product of the implementation?
--
Aleksander Machniak
Kolab Groupware Developer[http
On 10.03.2021 19:06, Matthew Brown wrote:
> Ondřej Mirtes and I present an RFC for the noreturn type:
> https://wiki.php.net/rfc/noreturn_type
I don't like that type covariance would be allowed. Why such an
exception to the rules?
--
Aleksander Machniak
Kolab Groupware Developer
he Traits behavior being consistent.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - PHP R
at this point.
I'm talking about ":string"/":int" in the enum definiton as well as
->value and ->from().
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
-
s = 'H';
case Diamonds = 'D';
case Clubs = 'C';
case Spades = 'S';
}
'H' === Suit::Hearts->value; // true
'Hearts' === Suit::Hearts->value; // false
Also, how about using a method instead of property for ->value?
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab
out the idea.
But this need to be redacted, because in the current form it's really
hard to read.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 #
t; for enums with a large number of cases. As an unfortunate side effect, this
> will preclude per-case methods, at least for now. :-(
Imo, this is good. This whole sub-classing part looked to me as too much
(at least for this step). Thank you for all this work.
--
Aleksander Machniak
Kolab Grou
lo world")
)
function someFunc() {
}
It's almost identical to #[] or @[], but it looks like PHP and has no BC
breaks. To me it also sounds good - "declare attribute(s) [for] something".
ps. sorry Mike for a duplicate, I pressed the wrong button.
--
Aleksander Machniak
Kolab Groupware
ght actually be a mistake
to implement the feature with any of the options on the table.
Maybe we should look for different approaches? Here's one. To not have
to use a new keyword I choose to try how "declare" would fit:
declare(
SomeAttr,
AntoherAttr("Hello world")
)
cla
.
Also make sure to define what happens if you use the attribute on a
function as well as class or e.g. class constant. In other words, when
it's not applicable will it be ignored or throw a warning/error?
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail D
if you write:
@@@ExampleAttribute()
class Foo
{
}
@@@some_function();
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.w
t's simple, i.e. is a simple function that returns base32 string.
The only argument might be the output string length.
My 2 cents.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https:
th "class attribute", "attribute class" or just "attribute"? Then
PhpAttribute would not be needed.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
-
ure the RFC can be edited during vote, but the second code
block in the RFC is wrong - missing "".
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PG
t; How does the return statement affect this example? The return statement
> would be inside the braces, the attributes would be before the braces.
I think he meant return type declaration. That's why the question about
the `use` clause is as well
ewArguments('Hello', 'World');
>>
function foo() {}
or if there's not many attributes, in the same line:
<>
It may look better for the short version, but I'm not so sure about the
long version.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube We
son for charset conversion cases?
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
--
PHP Internals - PHP Runtime Deve
ode
https://github.com/php/web-wiki/blob/9bc9ba2c3d2d0d26ab510e4959466ab8680b7de7/dokuwiki/lib/plugins/doodle/syntax.php#L226
suggests above statements are false.
--
Aleksander Machniak
Kolab Groupware Developer[https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
70 matches
Mail list logo