home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / ext / standard / php_var.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-30  |  2.0 KB  |  49 lines

  1. /* 
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Jani Lehtimäki <jkl@njet.net>                               |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19. /* $Id: php_var.h,v 1.5 2000/10/30 17:10:05 stas Exp $ */
  20.  
  21. #ifndef PHP_VAR_H
  22. #define PHP_VAR_H
  23.  
  24. PHP_FUNCTION(var_dump);
  25. PHP_FUNCTION(serialize);
  26. PHP_FUNCTION(unserialize);
  27.  
  28. void php_var_dump(pval **struc, int level);
  29.  
  30. /* typdef HashTable php_serialize_data_t; */
  31. #define php_serialize_data_t HashTable
  32.  
  33. void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
  34. int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
  35.  
  36. #define PHP_VAR_SERIALIZE_INIT(var_hash) \
  37.    zend_hash_init(&(var_hash),10,NULL,NULL,0)
  38. #define PHP_VAR_SERIALIZE_DESTROY(var_hash) \
  39.    zend_hash_destroy(&(var_hash))
  40.  
  41. #define PHP_VAR_UNSERIALIZE_INIT(var_hash) \
  42.    zend_hash_init(&(var_hash),10,NULL,NULL,0)
  43. #define PHP_VAR_UNSERIALIZE_DESTROY(var_hash) \
  44.    zend_hash_destroy(&(var_hash))
  45.  
  46. PHPAPI zend_class_entry *php_create_empty_class(char *class_name,int len);
  47.  
  48. #endif /* PHP_VAR_H */
  49.