?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
#!/usr/bin/env perl BEGIN { use lib '.', 'blib/lib', 'blib/arch'; system 'make'; } use strict; use warnings; use DBI ':sql_types'; use Data::Dumper; use YAML; use DBD::Pg qw/:pg_types/; use Data::Peek; use vars qw/$sth $info $count $SQL/; my $tracelevel = shift || 0; $ENV{DBI_TRACE} = $tracelevel; my $DSN = 'DBI:Pg:dbname=postgres'; my $dbh = DBI->connect($DSN, '', '', {AutoCommit=>0,RaiseError=>1,PrintError=>0}) or die "Connection failed!\n"; my $me = $dbh->{Driver}{Name}; print "DBI is version $DBI::VERSION, I am $me, version of DBD::Pg is $DBD::Pg::VERSION\n"; memory_leak_test_bug_65734(); exit; sub memory_leak_test_bug_65734 { ## Memory leak when an array appears in the bind variables ## Set things up $dbh->do('CREATE TEMPORARY TABLE tbl1 (id SERIAL PRIMARY KEY, val INTEGER[])'); $dbh->do('CREATE TEMPORARY TABLE tbl2 (id SERIAL PRIMARY KEY, val INTEGER)'); ## Subroutine that performs the leaking action sub leakmaker1 { $dbh->do('INSERT INTO tbl1(val) VALUES (?)', undef, [123]); } ## Control subroutine that does not leak sub leakmaker2 { $dbh->do('INSERT INTO tbl2(val) VALUES (?)', undef, 123); } leakcheck(\&leakmaker1,1000); exit; } ## end of memory_leak_test_bug_65734 sub leakcheck { my $sub = shift; my $count = shift || 1000; my $maxsize = shift || 100000; ## Safety check: if (exists $ENV{DBI_TRACE} and $ENV{DBI_TRACE} != 0 and $ENV{DBI_TRACE} != 42) { $maxsize = 1; } my $runs = 0; while (1) { last if $runs++ >= $maxsize; &$sub(); unless ($runs % $count) { printf "Cycles: %d\tProc size: %uK\n", $runs, (-f "/proc/$$/stat") ? do { local @ARGV="/proc/$$/stat"; (split (/\s/, <>))[22] / 1024 } : -1; } } } ## end of leakcheck __END__