Re: [PHP-DEV] Using `throw` with expr or expr logic

2005-03-07 Thread Sara Golemon
> Nothing to ridicule but there's a good reason that currently throw is a > statement. It has to do with us not being able to clean up properly when > we're within an expression as far as memory leaks, reference counting and > other locks are concerned. > Ah, that makes perfect sense. With exit

Re: [PHP-DEV] Using `throw` with expr or expr logic

2005-03-07 Thread Andi Gutmans
Hey Sara, Nothing to ridicule but there's a good reason that currently throw is a statement. It has to do with us not being able to clean up properly when we're within an expression as far as memory leaks, reference counting and other locks are concerned. Theoretically your patch could be applie

Re: [PHP-DEV] Using `throw` with expr or expr logic

2005-03-07 Thread Marcus Boerger
Hello Sara, patch looks correct anyway Andi or Zeev is needed here Monday, March 7, 2005, 11:13:30 PM, you wrote: > A user was asking about why he could perform statements such as: > $db = mysql_connect('localhost') or die('Unable to connect to database > server'); > But not: > $db = new my