@@ -1791,7 +1791,7 @@ procedure TPHPEngine.RefreshLibrary;
17911791 cnt, offset : integer;
17921792 HashName : zend_ustr;
17931793begin
1794- SetLength(FLibraryEntryTable, FHash.Count + MyFuncs.Count + 13 );
1794+ SetLength(FLibraryEntryTable, FHash.Count + MyFuncs.Count + 14 );
17951795
17961796 PHP_FUNCTION(FLibraryEntryTable[0 ], ' delphi_date' , @delphi_date);
17971797 PHP_FUNCTION(FLibraryEntryTable[1 ], ' delphi_extract_file_dir' , @delphi_extract_file_dir);
@@ -1830,37 +1830,44 @@ procedure TPHPEngine.RefreshLibrary;
18301830 FLibraryEntryTable[7 ].arg_info := nil ;
18311831 { $ENDIF}
18321832
1833- FLibraryEntryTable[8 ].fname := ' delphi_str_date ' ;
1834- FLibraryEntryTable[8 ].handler := @delphi_str_date ;
1833+ FLibraryEntryTable[8 ].fname := ' delphi_is_uc ' ;
1834+ FLibraryEntryTable[8 ].handler := @delphi_is_uc ;
18351835 { $IFDEF PHP4}
18361836 FLibraryEntryTable[8 ].func_arg_types := nil ;
18371837 { $ELSE}
18381838 FLibraryEntryTable[8 ].arg_info := nil ;
18391839 { $ENDIF}
18401840
1841+ FLibraryEntryTable[9 ].fname := ' delphi_str_date' ;
1842+ FLibraryEntryTable[9 ].handler := @delphi_str_date;
1843+ { $IFDEF PHP4}
1844+ FLibraryEntryTable[9 ].func_arg_types := nil ;
1845+ { $ELSE}
1846+ FLibraryEntryTable[9 ].arg_info := nil ;
1847+ { $ENDIF}
18411848
1842- PHP_FUNCTION(FLibraryEntryTable[9 ], ' delphi_get_system_directory' , @delphi_get_system_directory);
1843- PHP_FUNCTION(FLibraryEntryTable[10 ], ' InputBox' , @delphi_input_box);
1844- PHP_FUNCTION(FLibraryEntryTable[11 ], ' register_delphi_component' , @register_delphi_component);
1849+ PHP_FUNCTION(FLibraryEntryTable[10 ], ' delphi_get_system_directory' , @delphi_get_system_directory);
1850+ PHP_FUNCTION(FLibraryEntryTable[11 ], ' InputBox' , @delphi_input_box);
1851+ PHP_FUNCTION(FLibraryEntryTable[12 ], ' register_delphi_component' , @register_delphi_component);
18451852
18461853
18471854 for cnt := 0 to FHash.Count - 1 do
18481855 begin
18491856 HashName := FHash[cnt];
18501857
18511858 { $IFNDEF COMPILER_VC9}
1852- FLibraryEntryTable[cnt+12 ].fname := strdup(zend_pchar(HashName));
1859+ FLibraryEntryTable[cnt+13 ].fname := strdup(zend_pchar(HashName));
18531860 { $ELSE}
1854- FLibraryEntryTable[cnt+12 ].fname := DupStr(zend_pchar(HashName));
1861+ FLibraryEntryTable[cnt+13 ].fname := DupStr(zend_pchar(HashName));
18551862 { $ENDIF}
18561863
1857- FLibraryEntryTable[cnt+12 ].handler := @DispatchRequest;
1864+ FLibraryEntryTable[cnt+13 ].handler := @DispatchRequest;
18581865 { $IFDEF PHP4}
1859- FLibraryEntryTable[cnt+12 ].func_arg_types := nil ;
1866+ FLibraryEntryTable[cnt+13 ].func_arg_types := nil ;
18601867 { $ENDIF}
18611868 end ;
18621869
1863- offset := FHash.Count + 12 ;
1870+ offset := FHash.Count + 13 ;
18641871 for cnt := 0 to MyFuncs.Count - 1 do
18651872 begin
18661873 HashName := MyFuncs[cnt];
@@ -1877,10 +1884,10 @@ procedure TPHPEngine.RefreshLibrary;
18771884 end ;
18781885
18791886
1880- FLibraryEntryTable[FHash.Count+MyFuncs.Count+12 ].fname := nil ;
1881- FLibraryEntryTable[FHash.Count+MyFuncs.Count+12 ].handler := nil ;
1887+ FLibraryEntryTable[FHash.Count+MyFuncs.Count+13 ].fname := nil ;
1888+ FLibraryEntryTable[FHash.Count+MyFuncs.Count+13 ].handler := nil ;
18821889 { $IFDEF PHP4}
1883- FLibraryEntryTable[FHash.Count+MyFuncs.Count+12 ].func_arg_types := nil ;
1890+ FLibraryEntryTable[FHash.Count+MyFuncs.Count+13 ].func_arg_types := nil ;
18841891 { $ENDIF}
18851892
18861893 FLibraryModule.functions := @FLibraryEntryTable[0 ];
0 commit comments