|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-09-28 15:42 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2020-09-28 15:42 UTC] cmb@php.net
[2020-10-11 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
Description: ------------ Had this corruption error from a far more complicated php page as part of a webshop-in-development. Narrowed it down to this. Note: I only get a core crash when asking doubles from the database. I can retrieve normal text, currencies, dates,... Connecting to the database or querying it does not give any core crash. Only the fetch() or fetchAll(), etc. give the core crash and only for doubles... results from running the php-script: -- $ php test3.php Array ( [arStkReel] => 5.0000000000000000e+00 [0] => 5.0000000000000000e+00 ) made it!*** Error in `php': double free or corruption (out): 0x08f86650 *** Aborted (core dumped) -- runnig gc_collect_cycles(); or unset($row); or var_dump($row); or $row = array(); don't solve the problem. Test script: --------------- <?php // init database conn. $path = "/var/www"; $dbName = $path . "/ll2/access/ll.mdb"; if (!file_exists($dbName)) { die("Could not find database file."); } $dbh = new PDO ("odbc:Driver=MDBTools; DBQ=$dbName;"); // $stmt is an array with two doubles in it $stmt = $dbh->query("SELECT arStkReel FROM Article"); $row = $stmt->fetch(); // row is printed print_r($row); echo "made it!"; ?>