php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #426 Text strings longer than 1040 chars crash php
Submitted: 1998-06-02 18:00 UTC Modified: 1998-06-06 19:46 UTC
From: sam at daemoninc dot com Assigned: zeev (profile)
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0 Release Candidate 5 OS: Solaris 2.5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sam at daemoninc dot com
New email:
PHP Version: OS:

 

 [1998-06-02 18:00 UTC] sam at daemoninc dot com
Text fields longer than 1040 chars cause php to core dump during select.
Reproduce with:

for ($i = 0; $i <2200; ++$i) {
    $text .= "x";
}
 
echo "Drop=", sybase_query("drop table t"), "\n";
echo "Create=", sybase_query("create table t (t text)"), "\n";
echo "Insert=", sybase_query("insert into t values ('$text')"), "\n";
echo "Select=", sybase_query("select t from t"), "\n";

If I run this I see:
Drop=1
Create=1
Insert=1
Segmentation fault

If I reduce 2200 down to 1000 I see:
Drop=1
Create=1
Insert=1
Select=2

php3.ini:
sybase.interface_file=/tools1/pkgs/sybase/interfaces
doc_root=/web/cgi-bin/RC_internal/phpdir/scripts

Do-conf:
./configure --with-gd=no --with-sybase=/tools1/pkgs/sybase --with-config-file-path=/web/cgi-bin/RC_internal/phpdir/lib --enable-debug=no --enable-safe-mode=yes --with-exec-dir=/web/cgi-bin/RC_internal/phpdir/scripts --bindir=/web/cgi-bin/RC_internal/phpdir/bin


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-06 19:46 UTC] rasmus
Fixed by Zeev in 3.0 release
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 10:01:27 2024 UTC