* Include all of the standard modules in internal_functions.c.in. Stig - is that

the way you intended it to be?  How does the basic_functions module get in there?
* Fix to get MySQL objects working, even though I'll probably make a dedicated
  MySQL object in the future.
This commit is contained in:
Zeev Suraski 1999-05-14 18:25:16 +00:00
parent 67296f0704
commit 1fb61df8a5
14 changed files with 51 additions and 1 deletions

View file

@ -1481,6 +1481,8 @@ void php3_mysql_fetch_object(INTERNAL_FUNCTION_PARAMETERS)
php3_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
if (return_value->type==IS_ARRAY) {
return_value->type=IS_OBJECT;
return_value->value.obj.properties = return_value->value.ht;
return_value->value.obj.ce = &standard_class;
}
}
/* }}} */

View file

@ -122,7 +122,6 @@ function_entry basic_functions[] = {
{"rtrim", php3_chop, NULL},
{"pos", array_current, first_arg_force_ref},
{"fsockopen", php3_fsockopen, third_and_fourth_args_force_ref},
{"getimagesize", php3_getimagesize, NULL},
{"htmlspecialchars", php3_htmlspecialchars, NULL},
{"htmlentities", php3_htmlentities, NULL},

View file

@ -56,5 +56,6 @@ extern void php3_info_dl(ZEND_MODULE_INFO_FUNC_ARGS);
#endif
#define phpext_dl_ptr dl_module_ptr
#endif /* _DL_H */

View file

@ -64,4 +64,5 @@ extern void php3_set_socket_timeout(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_get_meta_tags(INTERNAL_FUNCTION_PARAMETERS);
extern PHP_FUNCTION(flock);
#define phpext_file_ptr php3_file_module_ptr
#endif /* _FILE_H */

View file

@ -54,4 +54,6 @@ extern int _php3_sock_fgets(char *buf, int maxlen, int socket);
extern int _php3_sock_fread(char *buf, int maxlen, int socket);
extern int _php3_is_persistent_sock(int);
#define phpext_fsock_ptr fsock_module_ptr
#endif /* _FSOCK_H */

View file

@ -61,4 +61,6 @@ void php4i_add_header_information(char *header_information, uint header_length);
PHPAPI int php3_header(void);
int php3_headers_unsent(void);
#define phpext_head_ptr php3_header_module_ptr
#endif

View file

@ -39,4 +39,6 @@ extern int php3_minit_pack(INIT_FUNC_ARGS);
extern void php3_pack(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_unpack(INTERNAL_FUNCTION_PARAMETERS);
#define phpext_pack_ptr pack_module_ptr
#endif /* _PACK_H */

View file

@ -40,4 +40,6 @@ extern int php3_mshutdown_browscap(SHUTDOWN_FUNC_ARGS);
extern void php3_get_browser(INTERNAL_FUNCTION_PARAMETERS);
#define phpext_browscap_ptr browscap_module_ptr
#endif /* _PHP3_BROWSCAP_H */

View file

@ -10,4 +10,6 @@ extern int php_minit_crypt(INIT_FUNC_ARGS);
#define crypt_module_ptr NULL
#endif
#define phpext_crypt_ptr crypt_module_ptr
#endif

View file

@ -45,4 +45,6 @@ extern void php3_rewinddir(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_readdir(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_getdir(INTERNAL_FUNCTION_PARAMETERS);
#define phpext_dir_ptr php3_dir_module_ptr
#endif /* _PHP3_DIR_H */

View file

@ -61,4 +61,6 @@ extern void php3_touch(INTERNAL_FUNCTION_PARAMETERS);
extern php3_module_entry php3_filestat_module_entry;
#define php3_filestat_module_ptr &php3_filestat_module_entry
#define phpext_filestat_ptr php3_filestat_module_ptr
#endif /* _FILESTAT_H */

View file

@ -43,4 +43,7 @@ extern int _php3_mail(char *to, char *subject, char *message, char *headers);
#else
#define mail_module_ptr NULL
#endif
#define phpext_mail_ptr mail_module_ptr
#endif /* _MAIL_H */

View file

@ -27,6 +27,10 @@
| |
+----------------------------------------------------------------------+
*/
#ifndef _PHP_SYSLOG_H
#define _PHP_SYSLOG_H
#if HAVE_SYSLOG_H
extern php3_module_entry syslog_module_entry;
#define syslog_module_ptr &syslog_module_entry
@ -42,3 +46,7 @@ extern void php3_define_syslog_variables(INTERNAL_FUNCTION_PARAMETERS);
#else
#define syslog_module_ptr NULL
#endif
#define phpext_syslog_ptr syslog_module_ptr
#endif /* _PHP_SYSLOG_H */

View file

@ -41,6 +41,17 @@
#include <stdio.h>
#include "ext/standard/reg.h"
#include "ext/standard/dl.h"
#include "ext/standard/file.h"
#include "ext/standard/fsock.h"
#include "ext/standard/head.h"
#include "ext/standard/pack.h"
#include "ext/standard/php3_browscap.h"
#include "ext/standard/php3_crypt.h"
#include "ext/standard/php3_dir.h"
#include "ext/standard/php3_filestat.h"
#include "ext/standard/php3_mail.h"
#include "ext/standard/php3_syslog.h"
@EXT_INCLUDE_CODE@
/* SNMP has to be moved to ext */
@ -53,6 +64,17 @@ unsigned char second_arg_allow_ref[] = { 2, BYREF_NONE, BYREF_ALLOW };
zend_module_entry *php3_builtin_modules[] = {
phpext_regex_ptr,
phpext_dl_ptr,
phpext_file_ptr,
phpext_fsock_ptr,
phpext_head_ptr,
phpext_pack_ptr,
phpext_browscap_ptr,
phpext_crypt_ptr,
phpext_dir_ptr,
phpext_filestat_ptr,
phpext_mail_ptr,
phpext_syslog_ptr,
@EXT_MODULE_PTRS@
};