Browse Source

@ New module for reading EXIF header data from JPEG files. Most digital

@ cameras will embed all sorts of information about a picture inside the
@ jpeg images it generates.  (Rasmus)
exif module
PHP-4.0.5
Rasmus Lerdorf 27 years ago
parent
commit
3c61d015c2
  1. 7
      ext/exif/Makefile.in
  2. 11
      ext/exif/config.m4
  3. 1569
      ext/exif/exif.c
  4. 28
      ext/exif/php_exif.h

7
ext/exif/Makefile.in

@ -0,0 +1,7 @@
# $Id$
LTLIBRARY_NAME = libexif.la
LTLIBRARY_SOURCES = exif.c
LTLIBRARY_SHARED_NAME = exif.la
include $(top_srcdir)/build/dynlib.mk

11
ext/exif/config.m4

@ -0,0 +1,11 @@
dnl $Id$
dnl config.m4 for extension exif
PHP_ARG_ENABLE(exif, whether to enable exif support,
dnl Make sure that the comment is aligned:
[ --enable-exif Enable exif support])
if test "$PHP_EXIF" != "no"; then
AC_DEFINE(PHP_EXIF, 1, [Whether you want exif support])
PHP_EXTENSION(exif, $ext_shared)
fi

1569
ext/exif/exif.c
File diff suppressed because it is too large
View File

28
ext/exif/php_exif.h

@ -0,0 +1,28 @@
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.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. |
+----------------------------------------------------------------------+
| Authors: Rasmus Lerdorf <rasmus@php.net> |
+----------------------------------------------------------------------+
*/
#ifdef COMPILE_DL
# undef PHP_EXIF
# define PHP_EXIF 1
#endif
#if PHP_EXIF
extern zend_module_entry exif_module_entry;
#define phpext_exif_ptr &exif_module_entry
PHP_FUNCTION(read_exif_data);
#endif
Loading…
Cancel
Save