@@ -1791,7 +1791,7 @@ procedure TPHPEngine.RefreshLibrary;
1791
1791
cnt, offset : integer;
1792
1792
HashName : zend_ustr;
1793
1793
begin
1794
- SetLength(FLibraryEntryTable, FHash.Count + MyFuncs.Count + 13 );
1794
+ SetLength(FLibraryEntryTable, FHash.Count + MyFuncs.Count + 14 );
1795
1795
1796
1796
PHP_FUNCTION(FLibraryEntryTable[0 ], ' delphi_date' , @delphi_date);
1797
1797
PHP_FUNCTION(FLibraryEntryTable[1 ], ' delphi_extract_file_dir' , @delphi_extract_file_dir);
@@ -1830,37 +1830,44 @@ procedure TPHPEngine.RefreshLibrary;
1830
1830
FLibraryEntryTable[7 ].arg_info := nil ;
1831
1831
{ $ENDIF}
1832
1832
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 ;
1835
1835
{ $IFDEF PHP4}
1836
1836
FLibraryEntryTable[8 ].func_arg_types := nil ;
1837
1837
{ $ELSE}
1838
1838
FLibraryEntryTable[8 ].arg_info := nil ;
1839
1839
{ $ENDIF}
1840
1840
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}
1841
1848
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);
1845
1852
1846
1853
1847
1854
for cnt := 0 to FHash.Count - 1 do
1848
1855
begin
1849
1856
HashName := FHash[cnt];
1850
1857
1851
1858
{ $IFNDEF COMPILER_VC9}
1852
- FLibraryEntryTable[cnt+12 ].fname := strdup(zend_pchar(HashName));
1859
+ FLibraryEntryTable[cnt+13 ].fname := strdup(zend_pchar(HashName));
1853
1860
{ $ELSE}
1854
- FLibraryEntryTable[cnt+12 ].fname := DupStr(zend_pchar(HashName));
1861
+ FLibraryEntryTable[cnt+13 ].fname := DupStr(zend_pchar(HashName));
1855
1862
{ $ENDIF}
1856
1863
1857
- FLibraryEntryTable[cnt+12 ].handler := @DispatchRequest;
1864
+ FLibraryEntryTable[cnt+13 ].handler := @DispatchRequest;
1858
1865
{ $IFDEF PHP4}
1859
- FLibraryEntryTable[cnt+12 ].func_arg_types := nil ;
1866
+ FLibraryEntryTable[cnt+13 ].func_arg_types := nil ;
1860
1867
{ $ENDIF}
1861
1868
end ;
1862
1869
1863
- offset := FHash.Count + 12 ;
1870
+ offset := FHash.Count + 13 ;
1864
1871
for cnt := 0 to MyFuncs.Count - 1 do
1865
1872
begin
1866
1873
HashName := MyFuncs[cnt];
@@ -1877,10 +1884,10 @@ procedure TPHPEngine.RefreshLibrary;
1877
1884
end ;
1878
1885
1879
1886
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 ;
1882
1889
{ $IFDEF PHP4}
1883
- FLibraryEntryTable[FHash.Count+MyFuncs.Count+12 ].func_arg_types := nil ;
1890
+ FLibraryEntryTable[FHash.Count+MyFuncs.Count+13 ].func_arg_types := nil ;
1884
1891
{ $ENDIF}
1885
1892
1886
1893
FLibraryModule.functions := @FLibraryEntryTable[0 ];
0 commit comments