|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-02 11:03 UTC] joey at cvs dot php dot net
[2001-02-10 15:22 UTC] jimw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 05:00:02 2025 UTC |
Hi, I am sending this bug report in accordance to the instructions on the PHP FAQ Section 7.1. I get a message 'Document Contains No Data' when trying to access a particular URL. PHP crashes on the following line (see full HTML file below): $result = sybase_query("SELECT user_id,firstname,lastname,email,website,modified FROM users",$db); Not sure why this is happening, and . The same configuration worked fine connecting to Sybase ASA database running on a remote NT server. You can try the URL causing the problem out at: http://209.239.224.149/ws/test/crash.php3 For a full phpinfo() on this server: http://209.239.224.149/ws/test/info.php3 The output log is as follow: ----------------------- #0 0x401b744a in chunk_alloc (ar_ptr=0x40247580, nb=128) at malloc.c:2857 #1 0x401b6b8a in __libc_malloc (bytes=120) at malloc.c:2616 #2 0x806b22c in strcpy () #3 0x8067a38 in strcpy () #4 0x8097198 in strcpy () #5 0x80654d8 in strcpy () #6 0x80656a0 in strcpy () #7 0x8062d59 in strcpy () #8 0x8062dba in strcpy () #9 0x80a1773 in strcpy () #10 0x80b44b9 in strcpy () #11 0x80b451c in strcpy () #12 0x80ac2ae in strcpy () #13 0x80ac43c in strcpy () #14 0x80ac599 in strcpy () #15 0x80acbb6 in strcpy () #16 0x80ad323 in strcpy () #17 0x40176cb3 in __libc_start_main (main=0x80acffc <strcpy+395860>, argc=4, argv=0xbffffd34, init=0x804b4a8 <_init>, fini=0x80cb1ac <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffd2c) at ../sysdeps/generic/libc-start.c:78 ----------------------- This is the HTML code: ----------------------- <?php include ("header.php3") ?> <HTML> <HEAD> <TITLE>Test</TITLE> </HEAD> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#0000FF" alink="#FF0000"> <p><h3>Apache 1.3.6 - PHP 3.0.11 (as Module, using Sybase's DBLIB) - Sybase ASE 11.0.3, all running on Linux RedHat 6.0</h2></p> <p><h3></h3>Click <A HREF="http://209.239.224.149/ws/test/info.php3">here</a> for phpinfo() output</h3></p> <?php $db = sybase_pconnect($database_host, $database_user, $database_pass); sybase_select_db($database_table, $db); // everything works fine so far, $db contains a valid value. // this is the line that creates the crash: $result = sybase_query("SELECT user_id,firstname,lastname,email,website,modified FROM users",$db); $myrow = sybase_fetch_array($result) echo $myrow["website"]; ?> </BODY> </HTML> ----------------------- I hope this helps. Please let us know if you can give us any useful information on this matter. Thank you. Sincerely, Tiago Hermans thermans@hawaii.rr.com