mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Somehow the rules for the configuration parser/scanners disappeared
This commit is contained in:
parent
b9d3a80709
commit
48de4ce0dd
@ -347,6 +347,7 @@ static void convert_browscap_pattern(pval *pattern)
|
||||
%token CFG_FALSE
|
||||
%token EXTENSION
|
||||
%token T_ZEND_EXTENSION
|
||||
%token T_ZEND_EXTENSION_TS
|
||||
|
||||
%%
|
||||
|
||||
@ -378,7 +379,18 @@ statement:
|
||||
|
||||
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;
|
||||
|
@ -59,6 +59,11 @@ void init_cfg_scanner()
|
||||
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;
|
||||
|
56
php4dll.dsp
56
php4dll.dsp
@ -653,6 +653,39 @@ SOURCE=.\win32\wfile.h
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=".\configuration-parser.y"
|
||||
|
||||
!IF "$(CFG)" == "php4dll - Win32 Debug"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-parser.y"
|
||||
|
||||
BuildCmds= \
|
||||
bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
|
||||
|
||||
"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
|
||||
"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "php4dll - Win32 Release"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-parser.y"
|
||||
|
||||
BuildCmds= \
|
||||
bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
|
||||
|
||||
"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
|
||||
"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Scanners"
|
||||
@ -661,6 +694,29 @@ SOURCE=".\configuration-parser.y"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=".\configuration-scanner.l"
|
||||
|
||||
!IF "$(CFG)" == "php4dll - Win32 Debug"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-scanner.l"
|
||||
|
||||
"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "php4dll - Win32 Release"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-scanner.l"
|
||||
|
||||
"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
|
@ -653,6 +653,39 @@ SOURCE=.\win32\wfile.h
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=".\configuration-parser.y"
|
||||
|
||||
!IF "$(CFG)" == "php4dllts - Win32 Debug_TS"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-parser.y"
|
||||
|
||||
BuildCmds= \
|
||||
bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
|
||||
|
||||
"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
|
||||
"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "php4dllts - Win32 Release_TS"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-parser.y"
|
||||
|
||||
BuildCmds= \
|
||||
bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
|
||||
|
||||
"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
|
||||
"configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(BuildCmds)
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Scanners"
|
||||
@ -661,6 +694,29 @@ SOURCE=".\configuration-parser.y"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=".\configuration-scanner.l"
|
||||
|
||||
!IF "$(CFG)" == "php4dllts - Win32 Debug_TS"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-scanner.l"
|
||||
|
||||
"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "php4dllts - Win32 Release_TS"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=".\configuration-scanner.l"
|
||||
|
||||
"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
|
Loading…
Reference in New Issue
Block a user