php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24427 Can't Find Mysql function
Submitted: 2003-06-30 21:22 UTC Modified: 2003-06-30 21:49 UTC
From: flyruns at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.0.0b1 (beta1) OS: windows 2000 Server sp2(chinese)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: flyruns at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-06-30 21:22 UTC] flyruns at hotmail dot com
Description:
------------
when i install php5

-----------
copy php5beat1/dlls/* -> %SYSTEMROOT%/system32/
copy php5beat1/php4ts.dll -> %SYSTEMROOM%/system32/
copy php5beat1/php.ini_dist -> %SYSTEMROOT%/php.ini

edit httpd.conf 
      LoadModule php5_module pathto/php5beat1/sapi/php4apache2.dll
      Addmodule module_php5.c

edit php.ini
----------------

   http://localhost/phpinfo.php

   i  can't find any mysql info!!!!!!



Reproduce code:
---------------
<?php
$conn=@mysql_connect("localhost","root","") or die(mysql_error());
@mysql_close($conn) or die(mysql_error());
?>
--------OUTPUT-----------
Fatal error: Call to undefined function: mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\mysql.php on line 2

Expected result:
----------------
i think.
what's wrong happend in my install.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-30 21:49 UTC] philip@php.net
MySQL is not compiled into the distributed Windows binaries in PHP 5, like they are in PHP 4, so undefined MySQL functions are expected here.

And btw, there is no php_mysql.dll in beta1, so wait for beta2 or use a snap: http://snaps.php.net/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 04:01:32 2024 UTC