mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
ext/msql has been moved from php-src to PECL adhead of PHP 5.3
This commit is contained in:
parent
0036a09ebe
commit
f06cbb6ba5
@ -1,2 +0,0 @@
|
||||
mSQL
|
||||
Zeev Suraski
|
@ -1,42 +0,0 @@
|
||||
dnl
|
||||
dnl $Id$
|
||||
dnl
|
||||
|
||||
dnl
|
||||
dnl Test mSQL version by checking if msql.h has "IDX_TYPE" defined.
|
||||
dnl
|
||||
AC_DEFUN([PHP_MSQL_VERSION],[
|
||||
AC_MSG_CHECKING([mSQL version])
|
||||
ac_php_oldcppflags=$CPPFLAGS
|
||||
CPPFLAGS="$INCLUDES $CPPFLAGS"
|
||||
AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include "msql.h"],[int i = IDX_TYPE],[
|
||||
AC_DEFINE(MSQL1,0,[ ])
|
||||
MSQL_VERSION="2.0 or newer"
|
||||
],[
|
||||
AC_DEFINE(MSQL1,1,[ ])
|
||||
MSQL_VERSION=1.0
|
||||
])
|
||||
CPPFLAGS=$ac_php_oldcppflags
|
||||
AC_MSG_RESULT($MSQL_VERSION)
|
||||
])
|
||||
|
||||
PHP_ARG_WITH(msql,for mSQL support,
|
||||
[ --with-msql[=DIR] Include mSQL support. DIR is the mSQL base
|
||||
install directory [/usr/local/Hughes]])
|
||||
|
||||
if test "$PHP_MSQL" != "no"; then
|
||||
if test "$PHP_MSQL" = "yes"; then
|
||||
MSQL_INCDIR=/usr/local/Hughes/include
|
||||
MSQL_LIBDIR=/usr/local/Hughes/lib
|
||||
else
|
||||
MSQL_INCDIR=$PHP_MSQL/include
|
||||
MSQL_LIBDIR=$PHP_MSQL/lib
|
||||
fi
|
||||
PHP_ADD_LIBRARY_WITH_PATH(msql, $MSQL_LIBDIR, MSQL_SHARED_LIBADD)
|
||||
PHP_ADD_INCLUDE($MSQL_INCDIR)
|
||||
AC_DEFINE(HAVE_MSQL,1,[ ])
|
||||
PHP_SUBST(MSQL_SHARED_LIBADD)
|
||||
PHP_NEW_EXTENSION(msql, php_msql.c, $ext_shared)
|
||||
PHP_MSQL_VERSION
|
||||
fi
|
@ -1,18 +0,0 @@
|
||||
// $Id$
|
||||
// vim:ft=javascript
|
||||
|
||||
ARG_WITH("msql", "MSQL support", "no");
|
||||
|
||||
if (PHP_MSQL != "no") {
|
||||
|
||||
if (CHECK_HEADER_ADD_INCLUDE("msql.h", "CFLAGS_MSQL", PHP_MSQL) &&
|
||||
CHECK_LIB("msql_dll.lib", "msql", PHP_MSQL)) {
|
||||
EXTENSION('msql', 'php_msql.c');
|
||||
|
||||
AC_DEFINE('HAVE_MSQL', 1);
|
||||
|
||||
} else {
|
||||
WARNING("msql not enabled; libraries and headers not found");
|
||||
}
|
||||
}
|
||||
|
@ -1,107 +0,0 @@
|
||||
# Microsoft Developer Studio Project File - Name="msql" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=msql - Win32 Debug_TS
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "msql.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "msql.mak" CFG="msql - Win32 Debug_TS"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "msql - Win32 Release_TS" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "msql - Win32 Debug_TS" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "msql - Win32 Release_TS"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release_TS"
|
||||
# PROP BASE Intermediate_Dir "Release_TS"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release_TS"
|
||||
# PROP Intermediate_Dir "Release_TS"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MSQL_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\main" /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\win32" /D "WIN32" /D "COMPILE_DL_MSQL" /D ZTS=1 /D HAVE_MSQL=1 /D ZEND_DEBUG=0 /D "NDEBUG" /D "_WINDOWS" /D "ZEND_WIN32" /D "PHP_WIN32" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x407 /d "NDEBUG"
|
||||
# ADD RSC /l 0x407 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
|
||||
# ADD LINK32 kernel32.lib php5ts.lib msql_dll.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"..\..\Release_TS/php_msql.dll" /libpath:"..\..\Release_TS" /libpath:"..\..\Release_TS_Inline"
|
||||
|
||||
!ELSEIF "$(CFG)" == "msql - Win32 Debug_TS"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug_TS"
|
||||
# PROP BASE Intermediate_Dir "Debug_TS"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug_TS"
|
||||
# PROP Intermediate_Dir "Debug_TS"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MSQL_EXPORTS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\main" /I "..\..\Zend" /I "..\..\TSRM" /D ZEND_DEBUG=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_MSQL=1 /D COMPILE_DL_MSQL=1 /YX /FD /GZ /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x407 /d "_DEBUG"
|
||||
# ADD RSC /l 0x407 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib php5ts_debug.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"..\..\Debug_TS/php_msql.dll" /pdbtype:sept /libpath:"..\..\Debug_TS"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "msql - Win32 Release_TS"
|
||||
# Name "msql - Win32 Debug_TS"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\php_msql.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\php_msql.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
1383
ext/msql/php_msql.c
1383
ext/msql/php_msql.c
File diff suppressed because it is too large
Load Diff
@ -1,82 +0,0 @@
|
||||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| PHP Version 5 |
|
||||
+----------------------------------------------------------------------+
|
||||
| Copyright (c) 1997-2008 The PHP Group |
|
||||
+----------------------------------------------------------------------+
|
||||
| This source file is subject to version 3.01 of the PHP license, |
|
||||
| that is bundled with this package in the file LICENSE, and is |
|
||||
| available through the world-wide-web at the following url: |
|
||||
| http://www.php.net/license/3_01.txt |
|
||||
| If you did not receive a copy of the PHP license and are unable to |
|
||||
| obtain it through the world-wide-web, please send a note to |
|
||||
| license@php.net so we can mail you a copy immediately. |
|
||||
+----------------------------------------------------------------------+
|
||||
| Author: Zeev Suraski <zeev@zend.com> |
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef PHP_MSQL_H
|
||||
#define PHP_MSQL_H
|
||||
|
||||
#if HAVE_MSQL
|
||||
|
||||
extern zend_module_entry msql_module_entry;
|
||||
#define msql_module_ptr &msql_module_entry
|
||||
|
||||
/* mSQL functions */
|
||||
PHP_MINIT_FUNCTION(msql);
|
||||
PHP_RINIT_FUNCTION(msql);
|
||||
PHP_MSHUTDOWN_FUNCTION(msql);
|
||||
PHP_MINFO_FUNCTION(msql);
|
||||
|
||||
PHP_FUNCTION(msql_connect);
|
||||
PHP_FUNCTION(msql_pconnect);
|
||||
PHP_FUNCTION(msql_close);
|
||||
PHP_FUNCTION(msql_select_db);
|
||||
PHP_FUNCTION(msql_create_db);
|
||||
PHP_FUNCTION(msql_drop_db);
|
||||
PHP_FUNCTION(msql_list_dbs);
|
||||
PHP_FUNCTION(msql_list_tables);
|
||||
PHP_FUNCTION(msql_list_fields);
|
||||
PHP_FUNCTION(msql_error);
|
||||
PHP_FUNCTION(msql_affected_rows);
|
||||
PHP_FUNCTION(msql_query);
|
||||
PHP_FUNCTION(msql_db_query);
|
||||
PHP_FUNCTION(msql_result);
|
||||
PHP_FUNCTION(msql_num_rows);
|
||||
PHP_FUNCTION(msql_num_fields);
|
||||
PHP_FUNCTION(msql_fetch_row);
|
||||
PHP_FUNCTION(msql_data_seek);
|
||||
PHP_FUNCTION(msql_fetch_field);
|
||||
PHP_FUNCTION(msql_field_seek);
|
||||
PHP_FUNCTION(msql_free_result);
|
||||
PHP_FUNCTION(msql_field_name);
|
||||
PHP_FUNCTION(msql_field_table);
|
||||
PHP_FUNCTION(msql_field_len);
|
||||
PHP_FUNCTION(msql_field_type);
|
||||
PHP_FUNCTION(msql_field_flags);
|
||||
PHP_FUNCTION(msql_fetch_array);
|
||||
PHP_FUNCTION(msql_fetch_object);
|
||||
|
||||
typedef struct {
|
||||
long default_link;
|
||||
long num_links,num_persistent;
|
||||
long max_links,max_persistent;
|
||||
long allow_persistent;
|
||||
int le_query;
|
||||
int le_link;
|
||||
int le_plink;
|
||||
} php_msql_globals;
|
||||
|
||||
#else
|
||||
|
||||
#define msql_module_ptr NULL
|
||||
|
||||
#endif
|
||||
|
||||
#define phpext_msql_ptr msql_module_ptr
|
||||
|
||||
#endif /* PHP_MSQL_H */
|
Loading…
Reference in New Issue
Block a user