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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Sun Dec 22 06:01:30 2024 UTC