ID: 11008
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0 Latest CVS (2001-05-21)
New Comment:
Fixed in CVS (integer values aren't printed to stdout anymore).
Previous Comments:
ID: 11008
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Analyzed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0 Latest CVS (2001-05-21)
New Comment:
I just got bitten by this. The manual page says that if the value passed
to exit() is
Sadly no :-/ There were some discussions in the past and some
ideas came up (exit_shell() or shell_exit()) but no further
steps where taken.
- Markus
On Thu, Dec 06, 2001 at 10:02:53PM -, [EMAIL PROTECTED] wrote :
ID: 11008
Updated by: sniper
Reported By: [EMAIL
On Fri, Dec 07, 2001 at 02:33:50AM +0200, Jani Taskinen wrote :
Creating some new function (or language construct :) and not fixing the
existing one is really stupid idea.
exit(string) - same behaviour as before
eixt(int)- only set exit-status and no echo out anything to stdout.
Jani Taskinen wrote:
I can't remember every single war there has been on php-dev.. :-p
Like Jason put it, two GOOD solutions (others are just denying the fact
that someone fucked this up when it was implemented):
1. Overload it.
2. Separate die() and exit().
Zeev, are you really using
Zeev,
New Comment:
Simply put - no, it should not.
exit's optional argument is a termination message, not a shell status.
Actually, if exit's argument is of type long, then the status is set. I think that
since we support this functionality
echoing the status code doesn't make much sense.
ID: 11008
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0 Latest CVS (2001-05-21)
New Comment:
Simply put - no, it should not.
exit's optional argument is a termination message, not a
ID: 11008
Updated by: brianlmoon
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating system:
PHP Version: 4.0 Latest CVS (2001-05-21)
Assigned To:
Comments:
Anyone in the Zend core want to comment on this? I know where the code is that does
it. But it is
Can we go ahead and change this behavior then? Is there really a reason to
echo the status to standard out?
Daniel
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 6:59 PM
Subject: [PHP-DEV] Bug #11008 Updated: exit() should return an exit
ID: 11008
Updated by: bbonev
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating system:
PHP Version: 4.0 Latest CVS (2001-05-21)
Assigned To:
Comments:
indeed it does both:
if php; then echo yes; fi
? exit(0) ?
X-Powered-By: PHP/4.0.5
Content-type:
10 matches
Mail list logo