%token CFG_FALSE
%token EXTENSION
%token T_ZEND_EXTENSION
+%token T_ZEND_EXTENSION_TS
%%
php3_dl(&$3,MODULE_PERSISTENT,&dummy);
}
- | T_ZEND_EXTENSION '=' string { zend_load_extension($3.value.str.val); free($3.value.str.val); }
+ | T_ZEND_EXTENSION '=' string {
+#ifndef ZTS
+ zend_load_extension($3.value.str.val);
+#endif
+ free($3.value.str.val);
+ }
+ | T_ZEND_EXTENSION_TS '=' string {
+#ifdef ZTS
+ zend_load_extension($3.value.str.val);
+#endif
+ free($3.value.str.val);
+ }
| SECTION {
if (parsing_mode==PARSING_MODE_BROWSCAP) {
pval tmp;
return T_ZEND_EXTENSION;
}
+
+<INITIAL>"zend_extension_ts" {
+ return T_ZEND_EXTENSION_TS;
+}
+
<INITIAL>[ ]*("true"|"on"|"yes")[ ]* {
cfglval->value.str.val = php3_strndup("1",1);
cfglval->value.str.len = 1;
# Begin Source File\r
\r
SOURCE=".\configuration-parser.y"\r
+\r
+!IF "$(CFG)" == "php4dll - Win32 Debug"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-parser.y"\r
+\r
+BuildCmds= \\r
+ bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y\r
+\r
+"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+\r
+"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "php4dll - Win32 Release"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-parser.y"\r
+\r
+BuildCmds= \\r
+ bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y\r
+\r
+"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+\r
+"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
# End Source File\r
# End Group\r
# Begin Group "Scanners"\r
# Begin Source File\r
\r
SOURCE=".\configuration-scanner.l"\r
+\r
+!IF "$(CFG)" == "php4dll - Win32 Debug"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-scanner.l"\r
+\r
+"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l\r
+\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "php4dll - Win32 Release"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-scanner.l"\r
+\r
+"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l\r
+\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
# End Source File\r
# End Group\r
# End Target\r
# Begin Source File\r
\r
SOURCE=".\configuration-parser.y"\r
+\r
+!IF "$(CFG)" == "php4dllts - Win32 Debug_TS"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-parser.y"\r
+\r
+BuildCmds= \\r
+ bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y\r
+\r
+"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+\r
+"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "php4dllts - Win32 Release_TS"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-parser.y"\r
+\r
+BuildCmds= \\r
+ bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y\r
+\r
+"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+\r
+"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
# End Source File\r
# End Group\r
# Begin Group "Scanners"\r
# Begin Source File\r
\r
SOURCE=".\configuration-scanner.l"\r
+\r
+!IF "$(CFG)" == "php4dllts - Win32 Debug_TS"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-scanner.l"\r
+\r
+"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l\r
+\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "php4dllts - Win32 Release_TS"\r
+\r
+# Begin Custom Build\r
+InputPath=".\configuration-scanner.l"\r
+\r
+"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l\r
+\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
# End Source File\r
# End Group\r
# End Target\r