Hi Ilija,
Am 04.11.2022 um 15:25 schrieb Ilija Tovilo:
Please let me know if you have any thoughts.
Ilija
That new way of accessing class constants dynamically does not really
make things more readable for me. Maybe I just need to get used to it,
but especially that last example would make
eds PHP7' libraries in parallel.
Are you talking about userland code or extensions here?
Which php5 "best practice" feature would be broken by php 7?
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vo
Are we discussing the PEAR installer or everything related to PEAR?
I see no reason to include the PEAR installer by default. Heck, on most distros
it's already split out into a separate package.
If I already have to install a package installer (php-pear) to install extensions using
pecl, the
not desirable anymore. This is not necessarily the case for all
those 3rd party channels around. I know some of them have been removed,
but that's another point.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85
et a much
better product.
In theory, I could just run older PHP releases but in practice, I wont.
I am in favor of the change but I am currently not technically able to vote.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstra
code must be maintained for every core change that
affects constructors.
> To this day, we
> still don't use namespaces or exceptions.
No part of PHP forces you to write your code this way. You can still
work with "Error classes" or "Error return values" and so on.
--
On 16.01.2015 09:00, Matteo Beccati wrote:
> On 15/01/2015 22:16, Ralf Lang wrote:
>> On 15.01.2015 21:35, Mike wrote:
>>> Wouldn't this one change render all code in PEAR as broken?
>> No.
>
> Why not? PEAR uses PHP4-constructors almost everywhere.
A lo
On 15.01.2015 21:35, Mike wrote:
> Wouldn't this one change render all code in PEAR as broken?
No.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralp
le stick with what comes with the operating
> system distribution.
And they will switch when the OS Vendor switches. This is completely
separate from what these versions do contain.
BTW, if you need latest PHP rpm's for distribution $foo, you will
probably find them on open build service.
mysql courses, we tell people about mysqlnd,
mysqli and PDO Mysql. We tell them to get rid of ext/mysql related code
- and not just since yesterday. I know this extension also runs (sort
of) with mariadb. But so do others.
It's time to say goodbye.
--
Ralf Lang
Linux Consultant / Develop
from modern platforms if unchanged/unmaintained.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
signature.asc
Description: OpenPGP digital signature
t and it will be long
after php7 to see another one.
This would enable us to cleanup much weird userland code.
Just let's make sure to get it right this time.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 850
, is everyone fine with it so far?
>
I'm fine with this. Juggling around with types to get a crossplatform
64bit type was not so easy for me.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg /
ZZ0 or ZZ9 or even
0ZZ depending on use case.
If there is a reason to do this in C rather than PHP userland code, it's
probably best fit in an extension.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088
ig fan of bundling a fixed set of bugs or bugfix releases of
loosely related libs with an app (rubygem style) and having them twice
or more times on a given system. Composer still has its place. I don't
see much to do here for php core.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6
adamant about Call Super being very bad
> _unless_ it's baked into the language in an interesting way.
Not that it would be an argument but just for understanding: Do you know
any scripting language which has this? This would help me seeing the
idea as I know some of them.
--
Ralf Lang
Linux Consultant / Developer
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
signature.asc
Description: OpenPGP digital signature
calling all supers (before or after the
class' __construct itself) ?
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg /
On 28.06.2013 08:45, Ralf Lang wrote:
> On 27.06.2013 18:52, Christopher Jones wrote:
>>
>>
>> On 06/27/2013 09:33 AM, Ralf Lang wrote:
>>
>>> Anyway, I have built a version of the patch (using unsigned long instead
>>> of signed long as the original d
t etc... I just don't have enough insight to see what
it means when it doesn't build ;)
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehme
s/1000
based timestamps, I think it's best to have a consistent set of
functions/classes that all accept the same.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph
On 27.06.2013 18:52, Christopher Jones wrote:
>
>
> On 06/27/2013 09:33 AM, Ralf Lang wrote:
>
>> Anyway, I have built a version of the patch (using unsigned long instead
>> of signed long as the original did) against old php 5.3.8 and currently
>> a test is runnin
This doesn't change the behaviour that the user sets a size and is not
notified that indeed a much lower (overflowed) size is configured.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b
iginal did) against old php 5.3.8 and currently
a test is running with a 4.7 GiB DVD Image. If it works well, I will
submit the patch and attach it to the bug record.
Thank you for your response.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems
}
> What do you think?
How would a break or continue on this behave? Would it end the inner or
the outer circle?
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Deh
y first patch against php core. Any pointers apreciated.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
15 year
old legacy system finally broke down will require some brains to "make
work again".
As a supporter / hired external consultant I would like that.
- --
Ralf Lang
Linux Consultant / Developer
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Us
the new PHP/extension binaries?
It would clutter the namespace a bit. It's all resolvable for the
distribution maintainers, but is it worth it?
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http:/
ve a problem with an include hierarchy, whereas OO-code can either use
the default autoloader or use a userland version (I use
Horde_Autoloader, but it's not the first and not the only implementation
which allows class naming beyond PSR-0 standards.
--
Ralf Lang
Linux Consultant / Developer
T
aymen to figure on their own.
As I said, I'll try on monday.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstad
d libraries. It's
not fundamentally different from the manual procedure.
The one thing apt-get/zypper saves is time. You eliminate the commit
states which won't build at all, at least for the end users. Now they
have more time to figure how they make their legacy code work with the
newest
on but for rapid deployment of "clean state" test
environments. It's similar to a CI suite.
If there is enough interest in php snapshots as rpm, I could begin
such a setup on monday.
- --
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B
1% of PHP developers have the technical ability to even do.
> Bring that up to 5-10% and we may see a *much* better feedback
> loop.[4]
>
If that is the issue, I could probably set up an obs project for that,
which would autobuild a distribution package out of the git code at
select points
I am here because I think exceptions should be in
more places where we now have fatals and I learnt a lot why this is
not happening now and why it is complicated to achieve and what it
could break.
In politics, everybody is advocate of silent majorities if he cannot
be advocate of vocal majorities
> From what I understood from Rasmus the biggest challenge with merging APC
> into core is the fact that the compiler currently isn't built to support
> opcode caching. One of the challenges he pointed out was some of the
> MAKE_NOP trickery that can make APC's work a bit more complex than
> necess
p Sci and software engineering and architecture?
I think this has been done before and most who stay and contribute over
time have come here by their own means.
--
Ralf Lang
Linux Consultant / Developer
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
> What do you think?
>
If we come up with two bad ideas, it's not a reason to shred
annotations altogether. ;)
Alternative wording:
1) Syntax #1
2) Syntax #2
...
n) Syntax #n
n+1) None of these - do nothing until we get better proposals.
- --
Ralf Lang
Linux Consultant / Developer
Tel
gt; shipping PHP 5.3 packages by default.
SLES 11 only upgraded to php 5.3 with SP2 and will drop 5.2 support in
Service Pack 3. Enterprise Distributions generally make it easier to
keep old stuff than allowing bleeding edge code like PHPUnit to run.
- --
Ralf Lang
Linux Consultant / Developer
T
al implementation
of InnoDB to replace the InnoDB shipped with the product.
This would allow turning off mysql deprecation warnings for those who
know what they are doing and provide a migration path.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Syst
of external changes. the mysql
extension maintainers do not want to or cannot support the extension for
much longer. It's perfectly ok for them to do so. php internals' task is
to run this through their deprecation cycle and educate anybody who is
listening how to cope with it.
--
Ralf Lang
1 to 2 years when 5.6/6 is released, add E_DEPRECATED.
>
This will just postpone people acting by one or two additional years.
E_DEPRECATED urges to act by spamming logs (at least those who do not
silence it. It doesn't hurt the rest).
By PHP 6 this thing should be gone for good.
has finally
> reached circles outside MySQL.
>
> Ulf
>
I think the best way of getting rid of trash php tutorials is not
catering to their wrong ways.
Run the standard deprecate-remove cycle instead, as you and most of us
prefer.
--
Ralf Lang
Linux Consultant / Developer
Tel.:
> I know PHP's model is all messed up, but no one here, I believe, is
> asking about putting non-error log messages in Exceptions. IO failure is
> an exception.
>
> If your IO operation fails, you can't just log it and plow forward
> blissfully without handling the problem.
>
> Stan
>
Exception
You do not, unless you have 20 exception types and catch them all
> separately.
No.
You just check for those types which you need to handle _here_ and
catch-all where apropriate by deriving exceptions from a common
library-wide root type.
- --
Ralf Lang
Linux Consultant / Developer
Te
> lowered($src);? Also, when lower() returns not true? If there's a
> legitimate situation when it must return not true (I can't think
> of any, but maybe for more complex functions there is) what
> lowered() is supposed to do in the same situation?
If it were user code, it sho
se's scope and limitations.
> Thoughts?
Provide a stock "Number" and "String" object if primitives themselves
cannot be turned into objects for bc reasons.
- --
Ralf Lang
Linux Consultant / Developer
B1 Systems GmbH
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 10.04.2012 20:28, schrieb Kris Craig:
> On Tue, Apr 10, 2012 at 11:12 AM, Ralf Lang
> wrote:
>
>>>> It always amuses me when PERL developers go on their little
>>>> soapboxes about how "real" programmer
o now bc breaks. (And some breaks I would not mind if done
right and for the right reasons).
- --
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmens
at a
sane point in time.
Given, I only see house rules, it's forbidden for anything new.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmen
s are
both slow and stable.
I don't think php development should commit to unpaid long term support.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Untern
at - or at least not encourage it.
Regards
Peter
The example is a simplified illustration of the case, it's not literally
the reason I want to have an exception here.
I will take my time to make this very clear in the RFC.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
least if
we would get an exception for trying to access (null)->mother();
Currently the user code must check each link of the chain if it is
available, although it is only interested if it can get the final result
or not.
I'll follow the suggestion and write an RFC.
--
Ralf Lang
we do it or not?
as PHP does not do any magical
overloading without explicitly declared, witch I think is a good
decision.
No magic wanted here. Just a yes, want / no, don't want.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: l...@b1-systems.de
B1 Systems GmbH
Oster
and it bloats the
code. It's just a requirement because currently PHP handles this as
non-recoverable fatal.
I see no reason why it would be not desirable to have PHP raise the
exception rather than putting more or less repeating code snippets all
around the place. That is why I am a
(Now let's hope this doesn't start something evil.)
--
Ralf Lang
Linux Consultant / Developer
Mail: l...@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
--
PHP Internals - P
54 matches
Mail list logo