summaryrefslogtreecommitdiff
path: root/genif.sh
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-09-03 17:46:39 +0000
committerSascha Schumann <sas@php.net>1999-09-03 17:46:39 +0000
commit5b293ecd4dcd22a391784a88cead34d810e7eac7 (patch)
tree368e68e3f30932d16012778b301c2c78fbf5e46a /genif.sh
parent690575e51f1866e00074411aae18f98d76cfdf26 (diff)
downloadphp-git-5b293ecd4dcd22a391784a88cead34d810e7eac7.tar.gz
- add global startup/shutdown handlers
- improve genif.sh to also consider all header files for inclusion (checks for phpext_) - use vsnprintf in main.c to avoid buffer overflows - improve sessions's mm module to cope better with OOM situations within the shared memory segment - fix typo wrt session.auto_start
Diffstat (limited to 'genif.sh')
-rw-r--r--genif.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/genif.sh b/genif.sh
index 09194b7741..4c182ec67e 100644
--- a/genif.sh
+++ b/genif.sh
@@ -1,6 +1,6 @@
#! /bin/sh
-# $Id: genif.sh,v 1.6 1999-05-21 10:05:41 sas Exp $
+# $Id: genif.sh,v 1.7 1999-09-03 17:46:39 sas Exp $
# replacement for genif.pl
infile="$1"
@@ -16,16 +16,20 @@ fi
module_ptrs=""
includes=""
+olddir=`pwd`
+cd $srcdir
+
for ext in ${1+"$@"} ; do
module_ptrs=" phpext_${ext}_ptr,\\\n$module_ptrs"
- for pre in php3_ php_ php4_ zend_ "" ; do
- hdrfile="ext/$ext/${pre}${ext}.h"
- if test -f "$srcdir/$hdrfile" ; then
- includes="#include \"$hdrfile\"\\\n$includes"
+ for header in ext/$ext/*.h ; do
+ if grep phpext_ $header >/dev/null 2>&1 ; then
+ includes="#include \"$header\"\\\n$includes"
fi
done
done
+cd $olddir
+
cat $infile | \
sed \
-e "s'@EXT_INCLUDE_CODE@'$includes'" \