Re: [PHP-DEV] Adding a donate link to the PHP website

2023-11-29 Thread Andreas Heigl
Hey Larry, Hey Jim. On 29.11.23 21:40, Larry Garfield wrote: On Wed, Nov 29, 2023, at 6:48 PM, Jim Winstead wrote: Hi (again), A quick re-intro for those who don't know or remember me: I'm one of the original PHP Group members, mostly active during the time of horses, buggies, and the

Re: [PHP-DEV] [PDO] I want to unify the behavior when changing the autocommit mode setting while a transaction is open.

2023-11-29 Thread Saki Takamachi
Hi Ayesh, > Unfortunately it did not make it to PHP 8.3, but the RFC vote > indicates the trajectory everyone hopes to have in PDO. It was voted > yes unanimously, so there is definitely a preference in majority of us > to iron out the differences, but perhaps in a non-BC way, preferably > making

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread youkidearitai
> Many languages like Rust only support UTF-8 > (https://doc.rust-lang.org/reference/input-format.html), and I don't > think any new PHP developers will expect PHP to work with non-UTF8 > encodings in the first place. Hi, PSR-1 is required use UTF-8. https://www.php-fig.org/psr/psr-1/ Files

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread Kentaro Takeda via internals
> The migration path is to convert the legacy-encoding PHP files to UTF-8. Please take a look at the following code. This is a part of the code that I am actually maintaining in the latest version of php. ```php https://www.php.net/unsub.php

[PHP-DEV] [PDO] 2 phase commit

2023-11-29 Thread Saki Takamachi
Hi internals, For the past few days I've been thinking about whether to make a suggestion to add two-phase commit functionality to pdo. I would like to hear everyone's opinions. About two-phase commit Regular transactions do not guarantee consistency across multiple DBs. For example, if you

Re: [PHP-DEV] Adding a donate link to the PHP website

2023-11-29 Thread Larry Garfield
On Wed, Nov 29, 2023, at 6:48 PM, Jim Winstead wrote: > Hi (again), > > A quick re-intro for those who don't know or remember me: I'm one of > the original PHP Group members, mostly active during the time of > horses, buggies, and the transitions from PHP/FI to PHP 3 and PHP 4. I > worked for

Re: [PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-29 Thread David Gebler
On Wed, Nov 29, 2023 at 7:19 AM Stephen Reay wrote: > So no, I don't think compact() should be deprecated, what I think *should* > happen, is to promote the current warning on undefined variables, to an > error, as per https://wiki.php.net/rfc/undefined_variable_error_promotion. > Whether this

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread Claude Pache
> Le 28 nov. 2023 à 21:47, Hans Henrik Bergan a écrit : > >> What is the migration path for legacy code that use those directives? > > The migration path is to convert the legacy-encoding PHP files to UTF-8. > Luckily this can be largely automated, here is my attempt: >

[PHP-DEV] Adding a donate link to the PHP website

2023-11-29 Thread Jim Winstead
Hi (again), A quick re-intro for those who don't know or remember me: I'm one of the original PHP Group members, mostly active during the time of horses, buggies, and the transitions from PHP/FI to PHP 3 and PHP 4. I worked for MySQL through their acquisition by Sun (and then Oracle), and was

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread Ayesh Karunaratne
> Shift_JIS is very ambiguous, What will we do if SJIS-2004 or SJIS-win comes? > How do we guess(detect) SJIS-2004, SJIS-win and SJIS-mac? I'm not the person you replied to in your previous email, but I thought to weigh in with what I can. My native language also uses multiple bytes, and have

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread youkidearitai
2023年11月29日(水) 21:16 youkidearitai : > > 2023年11月29日(水) 20:42 Hans Henrik Bergan : > > > > i think Shift_JIS can also be automatically converted to UTF-8, does > > this seem right? > > https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce821195816a8d24e23f6 > > > > Sorry if it's

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread youkidearitai
2023年11月29日(水) 20:42 Hans Henrik Bergan : > > i think Shift_JIS can also be automatically converted to UTF-8, does > this seem right? > https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce821195816a8d24e23f6 > Sorry if it's harsh, not right. Shift_JIS is very ambiguous, What will

Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

2023-11-29 Thread Hans Henrik Bergan
i think Shift_JIS can also be automatically converted to UTF-8, does this seem right? https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce821195816a8d24e23f6 On Wed, 29 Nov 2023 at 01:21, youkidearitai wrote: > > > Use zend.script_encoding=sjis and zend_bultibyte=true > > > > ❯

Re: [PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-29 Thread Robert Landers
On Wed, Nov 29, 2023 at 9:56 AM Lynn wrote: > > > > On Wed, Nov 29, 2023 at 9:20 AM Robert Landers > wrote: >> >> On Wed, Nov 29, 2023 at 8:19 AM Stephen Reay >> wrote: >> > >> > >> > >> > > On 29 Nov 2023, at 09:58, Larry Garfield wrote: >> > > >> > > On Tue, Nov 28, 2023, at 7:49 PM,

Re: [PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-29 Thread Robert Landers
Robert Landers Software Engineer Utrecht NL On Wed, Nov 29, 2023 at 9:36 AM Ayesh Karunaratne wrote: > > > > > try { > > // do stuff > > } catch(Throwable $exception) { > > $this->logger->error("failed to do stuff", compact('exception')); > > throw $exception; > > } > > > > I wonder why

Re: [PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-29 Thread Lynn
On Wed, Nov 29, 2023 at 9:20 AM Robert Landers wrote: > On Wed, Nov 29, 2023 at 8:19 AM Stephen Reay > wrote: > > > > > > > > > On 29 Nov 2023, at 09:58, Larry Garfield > wrote: > > > > > > On Tue, Nov 28, 2023, at 7:49 PM, Juliette Reinders Folmer wrote: > > >> L.S., > > >> > > >> What with

Re: [PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-29 Thread Ayesh Karunaratne
> > try { > // do stuff > } catch(Throwable $exception) { > $this->logger->error("failed to do stuff", compact('exception')); > throw $exception; > } > I wonder why not just create an array with the key... ```php try { // do stuff } catch(Throwable $exception) {

Re: [PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-29 Thread Robert Landers
On Wed, Nov 29, 2023 at 8:19 AM Stephen Reay wrote: > > > > > On 29 Nov 2023, at 09:58, Larry Garfield wrote: > > > > On Tue, Nov 28, 2023, at 7:49 PM, Juliette Reinders Folmer wrote: > >> L.S., > >> > >> What with all the drives towards cleaner code, how do people feel > >> nowadays about