RE: [PHP-DEV] urgent: Document Contains No Data
| From: | Bonis, Wim | Date: | Tue, 08 Jun 1999 12:58:59 +0000 |
| Subject: | RE: [PHP-DEV] urgent: Document Contains No Data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6709@lists.php.net to get a copy of this message | ||
> I wrote a document, which produce the output "Document
> contains no data" when I
> try to load it in my webbrowser. The same document worked
> fine on my old
> linux-box.
> I´am just linux user. So I don´t understand
> what is really happens.:
>
> Can anybody help me?
Sorry i can not help you, I just verfied that the Bug is present in 3.0.9:
In Linux(i586) and Solaris.2.6(sparc)
maybe it is related to BUG #1489 and #1494 because they also use
mysql_fetch_???
I used the following to test:
----------------------
<?
$link=mysql_connect("localhost");
$result=mysql_db_query("kiss","SELECT version() as version",$link);
if(!$result){
echo mysql_error();
}
//
// This one works
// $num = mysql_numrows($result);
// $i=0;
// while ($i < $num) {
// echo mysql_result($result,$i,"version");
// $i++;
// }
//
// This on works NOT
while($row = mysql_fetch_array($result)) {
echo $row['version'];
}
//
// This on works NOT
// while($row = mysql_fetch_object($result)) {
// echo $row->version;
// }
mysql_free_result($result);
mysql_close();
?>
------------------------
It give me core dump:
Core was generated by `/Web/cgi-bin-common/php-3.0.9 test2.php3'.
Program terminated with signal 11, Segmentation fault.
find_solib: Can't read pathname for load map: Input/output error
#0 0x80608dd in shutdown_memory_manager () at alloc.c:348
348 REMOVE_POINTER_FROM_LIST(p);
(gdb) where
#0 0x80608dd in shutdown_memory_manager () at alloc.c:348
#1 0x80594fb in php3_request_shutdown (dummy=0x0) at main.c:889
#2 0x805aac5 in main (argc=2, argv=0xbffff450) at main.c:1867
-------------------------------------------------------------------
Wim Bonis ,+'^'+, Telefon:0631-31662-0
Internet Solution Service GmbH Technik:0631-31662-15
+,.,+ privat:0631-36071-80
email: bonis@solution-service.de 67655 Kaiserslautern
Karl-Marx-Str. 13 --== DPN-POP KL ==--