RE: External Message: Re: [PHP-DEV] [RFC] Context Managers

From: Date: Thu, 06 Nov 2025 17:20:31 +0000
Subject: RE: External Message: Re: [PHP-DEV] [RFC] Context Managers
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-129118@lists.php.net to get a copy of this message
 
> One of the things that means is that if you just write
> $foo=$dbConnection->transaction() you can't accidentally run any methods
> on $foo, if all it has is enterContext and exitContext.

Since I first started following these two proposals, I've been wondering what happens if commit
returns a failure code, such as when deferred constraints are used and a constraint fails.

-Jeff


Thread (33 messages)

« previous php.internals (#129118) next »