|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1715 PHP module crashes
Submitted: 1999-07-15 03:58 UTC Modified: 2001-02-10 15:22 UTC
From: thermans at hawaii dot rr dot com Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0.11 OS: RedHat Linux 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thermans at hawaii dot rr dot com
New email:
PHP Version: OS:


 [1999-07-15 03:58 UTC] thermans at hawaii dot rr dot com

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:

For a full phpinfo() on this server:

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>, 
    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") ?>

<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="">here</a> for phpinfo() output</h3></p>

	$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"];


I hope this helps. Please let us know if you can give us any useful information on this matter.
Thank you.


Tiago Hermans


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-02 11:03 UTC] joey at cvs dot php dot net
Do you still see this bug in later versions of PHP3?
 [2001-02-10 15:22 UTC]
no feedback, closing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 16:01:32 2024 UTC