[PHP-DEV] PHP 4.0 Bug #9378 Updated: Exit() in a Funtion never break the process, PHP module still running

2001-04-29 Thread azhdin

ID: 9378
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Function Specific
Description: Exit() in a Funtion never break the process, PHP module still running

?php
function test() {
echo ji;
exit();
}
test();
?

With this test, the Exit() function goes well

Thanks

Previous Comments:
---

[2001-04-29 05:43:20] [EMAIL PROTECTED]
Cna you make us a test script without database access please. It makes it easier for 
us to test.

Thanks

- james

---

[2001-02-25 10:25:22] [EMAIL PROTECTED]
Here's my script where the problem occures.
You can see that there is a SQL statement error in $lvRequete because there a problem 
when an Oracle Error occures.
The first execution goes well, but since the second execution i've go the waiting 
cursor on my web page and the PHP module still running.

?php
function MySQLStatement() 
{
global $conn_id;

$conn_id = OCILogon(myname, mypass, ORACLE);

if ($conn_id == false)
{
echo 'OWS-20004 : Oracle error. Unable to connect to destination !';
exit;
}
$lvRequete = *Select sysdate from dual;
if ($SQLStatement = OCIParse($conn_id,$lvRequete))
{
if (OCIExecute($SQLStatement)==0)
{
OCILogOff($conn_id); 
echo 'OWS-20005 : Oracle error. SQL Syntax error !';
exit;
}

}
else
{
echo 'OWS-20006 : Oracle error. Parse SQL error Level 0 !';
exit;
}
if(OCIFetch($SQLStatement) != 0)
{   
$lvColumnName = OCIResult($SQLStatement,1);

return $lvColumnName;
}
else
{
OCILogOff($conn_id);
return Fetch Error;
}
OCIFreeStatement($SQLStatement);
}

$MyValue = MySQLStatement();
echo $MyValue;
?

---

[2001-02-24 13:01:44] [EMAIL PROTECTED]
the following test script works fine for me:
?php
function test() {
echo ji;
exit();
}
test();
?

can you report on this test or include the minimium about of code needed for you to 
reproduce it yourself.

James

---

[2001-02-21 13:23:59] [EMAIL PROTECTED]
Exit() in a Funtion never break the process, PHP module still running, and i have the 
Hourglass waiting cursoron my web page.

I'm using Win2000, Apache 1.3.17, PHP4.0.4pl1 as module
and Zend_optimizer



---


Full Bug description available at: http://bugs.php.net/?id=9378


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9378 Updated: Exit() in a Funtion never break the process, PHP module still running

2001-02-25 Thread azhdin

ID: 9378
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Function Specific
Description: Exit() in a Funtion never break the process, PHP module still running

Here's my script where the problem occures.
You can see that there is a SQL statement error in $lvRequete because there a problem 
when an Oracle Error occures.
The first execution goes well, but since the second execution i've go the waiting 
cursor on my web page and the PHP module still running.

?php
function MySQLStatement() 
{
global $conn_id;

$conn_id = OCILogon("myname", "mypass", "ORACLE");

if ($conn_id == false)
{
echo 'OWS-20004 : Oracle error. Unable to connect to destination !';
exit;
}
$lvRequete = "*Select sysdate from dual";
if ($SQLStatement = OCIParse($conn_id,$lvRequete))
{
if (OCIExecute($SQLStatement)==0)
{
OCILogOff($conn_id); 
echo 'OWS-20005 : Oracle error. SQL Syntax error !';
exit;
}

}
else
{
echo 'OWS-20006 : Oracle error. Parse SQL error Level 0 !';
exit;
}
if(OCIFetch($SQLStatement) != 0)
{   
$lvColumnName = OCIResult($SQLStatement,1);

return $lvColumnName;
}
else
{
OCILogOff($conn_id);
return "Fetch Error";
}
OCIFreeStatement($SQLStatement);
}

$MyValue = MySQLStatement();
echo $MyValue;
?

Previous Comments:
---

[2001-02-24 13:01:44] [EMAIL PROTECTED]
the following test script works fine for me:
?php
function test() {
echo "ji";
exit();
}
test();
?

can you report on this test or include the minimium about of code needed for you to 
reproduce it yourself.

James

---

[2001-02-21 13:23:59] [EMAIL PROTECTED]
Exit() in a Funtion never break the process, PHP module still running, and i have the 
Hourglass waiting cursoron my web page.

I'm using Win2000, Apache 1.3.17, PHP4.0.4pl1 as module
and Zend_optimizer



---


Full Bug description available at: http://bugs.php.net/?id=9378


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9378 Updated: Exit() in a Funtion never break the process, PHP module still running

2001-02-24 Thread jmoore

ID: 9378
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Assigned To: 
Comments:

the following test script works fine for me:
?php
function test() {
echo "ji";
exit();
}
test();
?

can you report on this test or include the minimium about of code needed for you to 
reproduce it yourself.

James

Previous Comments:
---

[2001-02-21 13:23:59] [EMAIL PROTECTED]
Exit() in a Funtion never break the process, PHP module still running, and i have the 
Hourglass waiting cursoron my web page.

I'm using Win2000, Apache 1.3.17, PHP4.0.4pl1 as module
and Zend_optimizer



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9378edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]