Re: [PHP-DEV] [RFC][Dynamic class constant fetch]

2022-11-04 Thread Ralf Lang
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

Re: [PHP-DEV] Dragging the legacy users forward.

2015-02-08 Thread Ralf Lang
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

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-31 Thread Ralf Lang
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

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-28 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2015-01-20 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2015-01-18 Thread Ralf Lang
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. --

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2015-01-17 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2015-01-15 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] Remove deprecated functionality in PHP 7

2014-12-21 Thread Ralf Lang
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.

Re: [PHP-DEV] Re: [RFC] Remove deprecated functionality in PHP 7

2014-12-21 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2014-11-19 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] Exceptions in the engine

2014-10-07 Thread Ralf Lang
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

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-08-08 Thread Ralf Lang
, 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 /

Re: [PHP-DEV] Feature Proposal: Allow letter decrementing

2013-07-19 Thread Ralf Lang
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

Re: [PHP-DEV] PHP proposal on modular systems

2013-07-15 Thread Ralf Lang
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

Re: [PHP-DEV] New feature: sequential constructors

2013-07-03 Thread Ralf Lang
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

Re: [PHP-DEV] New feature: sequential constructors

2013-07-03 Thread Ralf Lang
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 /

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-07-03 Thread Ralf Lang
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

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Fix PDO_DBLIB bugs - FreeTDS dependency

2013-07-03 Thread Ralf Lang
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

Re: [PHP-DEV] Re: IntlTimeZone::getOffset?

2013-06-30 Thread Ralf Lang
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

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
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

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
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

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
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

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Ralf Lang
} > 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

[PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
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

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-05 Thread Ralf Lang
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

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-04 Thread Ralf Lang
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:/

[PHP-DEV] Namespace and autoloader Re: [PHP-DEV] Questioning the future of PHP

2013-02-04 Thread Ralf Lang
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

Re: [PHP-DEV] Voting periods

2013-01-29 Thread Ralf Lang
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

[PHP-DEV] packaged and manual builds Re: [PHP-DEV] Voting periods

2013-01-29 Thread Ralf Lang
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

Re: [PHP-DEV] Voting periods

2013-01-29 Thread Ralf Lang
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

Re: [PHP-DEV] Voting periods

2013-01-29 Thread Ralf Lang
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

Re: [PHP-DEV] Voting periods

2013-01-28 Thread Ralf Lang
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

Re: [PHP-DEV] HEADS UP: Upcoming Feature Freeze for PHP 5.5.0

2013-01-24 Thread Ralf Lang
> 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

Re: [PHP-DEV] Re: Was Reflection annotations reader - We Need A Vision

2013-01-10 Thread Ralf Lang
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

Re: [PHP-DEV] Re: Was Reflection annotations reader - We Need A Vision

2013-01-10 Thread Ralf Lang
> 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

Re: [PHP-DEV] PHP 5.3 - end of live schedule

2012-12-10 Thread Ralf Lang
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

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-16 Thread Ralf Lang
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

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-14 Thread Ralf Lang
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

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-13 Thread 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.

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-12 Thread Ralf Lang
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.:

Re: [PHP-DEV] Error handling brainstorming

2012-08-09 Thread Ralf Lang
> 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

Re: [PHP-DEV] Error handling brainstorming

2012-08-06 Thread Ralf Lang
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

Re: [PHP-DEV] Regarding PHP6, string/array APIs

2012-07-19 Thread Ralf Lang
> 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

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-16 Thread Ralf Lang
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

Re: [PHP-DEV] [off] PHP: a fractal of bad design

2012-04-11 Thread Ralf Lang
-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

Re: [PHP-DEV] [off] PHP: a fractal of bad design

2012-04-10 Thread Ralf Lang
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

Re: [PHP-DEV] '

2012-03-06 Thread Ralf Lang
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

Re: [PHP-DEV] [RFC] discussions, about a 5.3 EOL

2012-03-02 Thread Ralf Lang
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

Re: [PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-23 Thread Ralf Lang
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

Re: [PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-21 Thread Ralf Lang
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

Re: [PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-21 Thread 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

Re: [PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-21 Thread Ralf Lang
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

[PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-21 Thread Ralf Lang
(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