php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48772 php_mysql.dll crashes
Submitted: 2009-07-02 11:29 UTC Modified: 2009-07-02 11:31 UTC
From: bentogoa at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.3.0 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bentogoa at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-02 11:29 UTC] bentogoa at gmail dot com
Description:
------------
php_mysql.dll crashes when mysql_close() is called with no link identifier.

Apache 2.2.10

Running php with only one extension

Reproduce code:
---------------
<?php
mysql_connect("localhost", "username", "password") or
   die("Could not connect: " . mysql_error());

echo 'Connected successfully';
mysql_close();
?> 

Expected result:
----------------
Connected successfully

Actual result:
--------------
php_mysql.dll crashes and the connection is reset.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-02 11:31 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #48754

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 09:01:31 2024 UTC