[php-maint] Bug#431044: Bug#431044: Bug#431044: Apache child exits on sql server functions

Walter Doekes walter at wjd.nu
Thu Oct 4 08:08:37 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Steve

Steve Langasek wrote:
> Walter Doekes wrote:
>> <?php
>> putenv('TDSVER=7.0');
>> $db = sybase_connect($server, $username, $password);
>> sybase_select_db('MODULES', $db);
>> sybase_query("DROP TABLE test_tbl");
>> sybase_query("CREATE TABLE test_tbl
>>   (a INT, b NVARCHAR(255), c UNIQUEIDENTIFIER)");
>> sybase_query("INSERT INTO test_tbl VALUES
>>   (1, N'Hello World', NEWID())");
>> if (($q1 = sybase_query("SELECT a, b FROM test_tbl")))
>>         print_r(sybase_fetch_row($q1));
>> if (($q2 = sybase_query("SELECT a, b, c FROM test_tbl")))
>>         print_r(sybase_fetch_row($q2));
>> ?>
> 
>> This outputs:
> 
>> Array
>> (
>>     [0] => 1
>>     [1] => Hello World
>> )
>> error_handler: Data-conversion resulted in overflow.
>> Segmentation fault
> 
> Is this problem reproducible for you with the php5-sybase package in
> unstable, which is now based on the mssql extension rather than the
> sybase-ct extension?  I wasn't able to reproduce it here.

I don't think I would be able to reproduce it with a package based on
the mssql extension. As the author of the original bug report to php.net
pointed out, he could fix it by adding explicit support for the
CS_UNIQUE_TYPE to php_sybase_ct.c. So unless that support has been
"forgotten" in the mssql extension as well, you won't be seeing that bug.

But because unstable will take a while to become stable, I wouldn't mind
if the tiny fix would be applied to the current stable. If that's not
possible, I guess I'll have to wait for a backport :)

Regards,
Walter Doekes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHBJ+FHeLk+LNJZ18RAtRbAJ4sDtjtignAIJ7/pkcvcNEjavq0awCfcN15
LI6Z7pat8gchXCErxCOOAaM=
=bV9n
-----END PGP SIGNATURE-----






More information about the pkg-php-maint mailing list