[PHP-DEV] PHP 4.0 Bug #7481 Updated: When accesing to data with mssql_query php crashes. Seems a pointer error

2001-04-10 Thread sniper

ID: 7481
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: MSSQL related
Assigned To: 
Comments:

No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug 
report.

--Jani


Previous Comments:
---

[2001-02-25 07:34:55] [EMAIL PROTECTED]
Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

---

[2000-10-26 09:42:16] [EMAIL PROTECTED]
function fetchtable()
{
$hostname = "1.100.1.131"; 
$username = "bdmssql"; 
$password = "bdmssql"; 
$dbName = "bdm"; 

$dbhandle = MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO 
RESPOND."); 
mssql_select_db($dbName) or DIE("Table unavailable"); 


print "TABLE border="1" width="100%"TR";

/* here come some commands to make the query string*/


$salida=MSSQL_QUERY("$str_1 $str_2 $str_3;");
/* the query string looks like:
SELECT t1.ID_PER ,t1.NOMBRE ,t1.APELLIDOS ,t1.NACIONALIDAD ,t1.FECHA_NACIM 
,t1.PROFESION ,t1.SEXO ,b7.DESCRIPCION as IDIOMA ,b8.NOMBRE as INSTITUCION 
FROM personas t1, IDIOMAS b7, INSTITUCIONES b8 
WHERE b7.ID_IDI = t1.REF_IDI AND b8.ID_INS = t1.REF_INS  */
$fila=0;
while ($array_sal[$fila] = mssql_fetch_row ($salida))
{
$fila++;
print "TR";
print "TDINPUT TYPE="radio" NAME="registro" 
VALUE="".$array_sal[$fila-1][0].""/TD";
for ($p=1;$pcount($array_sal[$fila-1]);$p++) 
{ print "TD".$array_sal[$fila-1][$p]."/TD"; }
print "/TR";
}
I have only activated php_mssql7.dll

The error is like:
I n the server console an eroor message pops up telling:
---
php.exe : Application error.
" Intruction "0x7800..." has referenced memory at "0x0065...". I has not been able to 
write to memory.

Choos Ok to end application.
Choose cancel to debug application.

As you can see It's very likely to be a pointer error , which i think should be 
corrected.

Thanks anyway


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7481edit=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]




[PHP-DEV] PHP 4.0 Bug #7481 Updated: When accesing to data with mssql_query php crashes. Seems a pointer error

2001-02-25 Thread sbergmann

ID: 7481
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: MSSQL related
Assigned To: 
Comments:

Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

Previous Comments:
---

[2000-10-26 09:42:16] [EMAIL PROTECTED]
function fetchtable()
{
$hostname = "1.100.1.131"; 
$username = "bdmssql"; 
$password = "bdmssql"; 
$dbName = "bdm"; 

$dbhandle = MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO 
RESPOND."); 
mssql_select_db($dbName) or DIE("Table unavailable"); 


print "TABLE border="1" width="100%"TR";

/* here come some commands to make the query string*/


$salida=MSSQL_QUERY("$str_1 $str_2 $str_3;");
/* the query string looks like:
SELECT t1.ID_PER ,t1.NOMBRE ,t1.APELLIDOS ,t1.NACIONALIDAD ,t1.FECHA_NACIM 
,t1.PROFESION ,t1.SEXO ,b7.DESCRIPCION as IDIOMA ,b8.NOMBRE as INSTITUCION 
FROM personas t1, IDIOMAS b7, INSTITUCIONES b8 
WHERE b7.ID_IDI = t1.REF_IDI AND b8.ID_INS = t1.REF_INS  */
$fila=0;
while ($array_sal[$fila] = mssql_fetch_row ($salida))
{
$fila++;
print "TR";
print "TDINPUT TYPE="radio" NAME="registro" 
VALUE="".$array_sal[$fila-1][0].""/TD";
for ($p=1;$pcount($array_sal[$fila-1]);$p++) 
{ print "TD".$array_sal[$fila-1][$p]."/TD"; }
print "/TR";
}
I have only activated php_mssql7.dll

The error is like:
I n the server console an eroor message pops up telling:
---
php.exe : Application error.
" Intruction "0x7800..." has referenced memory at "0x0065...". I has not been able to 
write to memory.

Choos Ok to end application.
Choose cancel to debug application.

As you can see It's very likely to be a pointer error , which i think should be 
corrected.

Thanks anyway


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7481edit=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]




[PHP-DEV] PHP 4.0 Bug #7481 Updated: When accesing to data with mssql_query php crashes. Seems a pointer error

2001-02-25 Thread sbergmann

ID: 7481
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: MSSQL related
Assigned To: 
Comments:



Previous Comments:
---

[2000-10-26 09:42:16] [EMAIL PROTECTED]
function fetchtable()
{
$hostname = "1.100.1.131"; 
$username = "bdmssql"; 
$password = "bdmssql"; 
$dbName = "bdm"; 

$dbhandle = MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO 
RESPOND."); 
mssql_select_db($dbName) or DIE("Table unavailable"); 


print "TABLE border="1" width="100%"TR";

/* here come some commands to make the query string*/


$salida=MSSQL_QUERY("$str_1 $str_2 $str_3;");
/* the query string looks like:
SELECT t1.ID_PER ,t1.NOMBRE ,t1.APELLIDOS ,t1.NACIONALIDAD ,t1.FECHA_NACIM 
,t1.PROFESION ,t1.SEXO ,b7.DESCRIPCION as IDIOMA ,b8.NOMBRE as INSTITUCION 
FROM personas t1, IDIOMAS b7, INSTITUCIONES b8 
WHERE b7.ID_IDI = t1.REF_IDI AND b8.ID_INS = t1.REF_INS  */
$fila=0;
while ($array_sal[$fila] = mssql_fetch_row ($salida))
{
$fila++;
print "TR";
print "TDINPUT TYPE="radio" NAME="registro" 
VALUE="".$array_sal[$fila-1][0].""/TD";
for ($p=1;$pcount($array_sal[$fila-1]);$p++) 
{ print "TD".$array_sal[$fila-1][$p]."/TD"; }
print "/TR";
}
I have only activated php_mssql7.dll

The error is like:
I n the server console an eroor message pops up telling:
---
php.exe : Application error.
" Intruction "0x7800..." has referenced memory at "0x0065...". I has not been able to 
write to memory.

Choos Ok to end application.
Choose cancel to debug application.

As you can see It's very likely to be a pointer error , which i think should be 
corrected.

Thanks anyway


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7481edit=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]