|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-10 13:49 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 18:00:01 2025 UTC |
Description: ------------ When using a PDO connection object unserialize from a serialized string, PHP crashed. Error message: "Application Failure Apache.exe 2.0.54.0 in php5ts.dll 5.1.0.0 at offset 0012bb10". Is it really a bug? My PHP version is 5.1.0RC1. Reproduce code: --------------- <?php $connection = new PDO("mysql:dbname=test;host=localhost", "root", "root"); $connection = unserialize(serialize($connection)); $stmt = $connection->query("SELECT * FROM users"); $connection = null; ?> Expected result: ---------------- The code worked well Actual result: -------------- The browser said "can not find server" and PHP crashed with message "Application Failure Apache.exe 2.0.54.0 in php5ts.dll 5.1.0.0 at offset 0012bb10".