Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
iles for TDS, which you will need to develop applications that connect to MS SQL servers. You will also need this package if you are installing the Perl DBD::Sybase module on your system using CPAN. Bugs: mailto:[EMAIL PROTECTED] Origin: Ubuntu /Krister Karlström Derick Rethans wrote: On

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
Antony Dovgal wrote: On 15.10.2008 12:55, Krister Karlström wrote: Hi, On the Ubuntu server (where the problems occured) I'm not good enough to figure out which version of FreeTDS that is boundled with PHP, but these packages are installed with PHP: I don't think it's bun

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
we're apparently using version 0.64, I notice now that there's a newer version 0.82 out. Could it be that Ubuntu has upgraded to 0.82 which causes the problem? Greetings, Krister Karlström Antony Dovgal wrote: On 15.10.2008 12:06, Krister Karlström wrote: Thanks for the advice Derick

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
OK, Thanks for the clue though! :) What do you think about Sean Finneys post about this bug? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=423296 Debian has patched a memory bug that also ended up affecting the php5-sybase extension... /Krister Karlström Derick Rethans wrote: This gives

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
s problem only shows on Ubuntu and not on Slackware? /Krister Karlström Derick Rethans wrote: On Wed, 15 Oct 2008, Krister Karlström wrote: run the same sample script with PHP 5.2.6 configured with --disable-all --enable-debug --with-mssql on the Ubuntu Hardy machine. I did exactly the same

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
p' /home/karlstrk/php-5.2.6/ext/mssql/php_mssql.c(911) : Freeing 0x08317FCC (25 bytes), script=/var/www/asta/testcases/TestMsSQL.php Last leak repeated 9 times === Total 10 memory leaks detected === It reports 10 memory leaks..? I'm also gonna run this though valgrind, need to inst

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-15 Thread Krister Karlström
rors in dl() library. On 14-Oct-08, at 4:15 AM, Krister Karlström wrote: Hi, I run the script on a server in our production environment, a slackware server with a self compiled PHP from source. The PHP version was 5.2.5. php-v gives the following: PHP 5.2.5 (cli) (built: Mar 28 2008 12:02:5

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-14 Thread Krister Karlström
) 1998-2007 Zend Technologies I found the problem on a development server which was running Ubuntu and apperently also the Suhosin patch (the latest available packet from Ubuntu). /Krister Karlström Pierre Joye wrote: hi, On Tue, Oct 14, 2008 at 8:46 AM, Krister Karlström <[EMAIL PROTEC

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-13 Thread Krister Karlström
rror (in /lib/ld-2.5.so) ==3285== ==3285== LEAK SUMMARY: ==3285==definitely lost: 245 bytes in 5 blocks. ==3285==indirectly lost: 608 bytes in 7 blocks. ==3285== possibly lost: 0 bytes in 0 blocks. ==3285==still reachable: 2,321 bytes in 11 blocks. ==3285== suppressed:

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-10 Thread Krister Karlström
is a chance it maybe a false positive on the part of Suhosin. If it does report a problem however, then mssql extension has a bug and valgrind output should be good enough to identify the where & the why. On 10-Oct-08, at 7:18 AM, Krister Karlström wrote: Hi, This bug #44872 puzz

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-10 Thread Krister Karlström
OK, thanks Ilia! I'm gonna try the valgrind. Will report back later. /Krister Karlström Ilia Alshanetsky wrote: The error messages comes from Suhosin, which is why a basic PHP environment does not exhibit this problem. What I can ask you to try is to run the affected code on a basi

Re: [PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-10 Thread Krister Karlström
replace it with a pure PHP environment... :) /Krister Karlström Pierre Joye wrote: hi, On Fri, Oct 10, 2008 at 1:18 PM, Krister Karlström <[EMAIL PROTECTED]> wrote: Hi, This bug #44872 puzzles me, I experienced it today running testcases with PHPUnit on command line, thus invoking PHP C

[PHP-DEV] Bug #44872 canary mismatch on efree() - heap overflow detected

2008-10-10 Thread Krister Karlström
ed this problem in a "pure" Slackware environment where the Suhosin patch is not used, so it seems like a Suhosin issue. It might as well be a bug in PHP that Suhosin catches... Maybe someone should re-open this ticket? http://bugs.php.net/bug.php?id=44872 Greetings, Krister Kar

Re: [PHP-DEV] Return type hints

2008-04-08 Thread Krister Karlström
. But it was only a suggestion among others. /Krister Karlström Arvids Godjuks wrote: Em, you have __call method in classes - via it you could implement ANY logic for overloading. It's written in manual here: http://www.php.net/manual/en/language.oop5.overloading.php KISS should be fol

Re: [PHP-DEV] Return type hints

2008-04-08 Thread Krister Karlström
t be redeclared. This would in my opinion be very useful for methods in classes. Greetings, Krister Karlström, Helsinki, Finland Arvids Godjuks wrote: I think type hint's would be good optional functionality. Those who need will use it, others will not. I'd probably use it in some ca

Re: [PHP-DEV] strtotime() in PHP 5.2.3

2008-03-13 Thread Krister Karlström
Derick Rethans wrote: On Wed, 12 Mar 2008, Krister Karlström wrote: But I still think that the best option would be if maybe strtotime() would be able to work with the default format returned by MS-SQL and just ignore the milliseconds even if they're separated by a colon and also allow t

[PHP-DEV] strtotime() in PHP 5.2.3

2008-03-12 Thread Krister Karlström
set the mssql.convertdatetime setting to off in order to get everything to work. But I still think that the best option would be if maybe strtotime() would be able to work with the default format returned by MS-SQL and just ignore the milliseconds even if they're separated by a colon and