Skip to content

Commit

Permalink
Some small fixes
Browse files Browse the repository at this point in the history
One more step #7 to remove assembler
  • Loading branch information
Lev Zenin authored and Lev Zenin committed Feb 12, 2020
1 parent a5a7b69 commit 978b112
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Source/Demos/psvPHP/console/phpcon.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var
begin
if zend_parse_method_parameters(1, TSRMLS_DC, this_ptr, 'z', @p) = 0 then
begin
ZVAL_STRING(z,'πŸ†πŸ†πŸ† .-=WPD=-. πŸ†πŸ†πŸ†',true);
ZVAL_STRINGW(p,'πŸ†πŸ†πŸ† .-=WPD=-. πŸ†πŸ†πŸ†',true);
end;
end;
begin
Expand Down
1 change: 0 additions & 1 deletion Source/ZENDAPI.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,6 @@ procedure VariantToZend(const Value:Variant;z:pzval;
cobj: TObjectAConvertMethod=nil);
var
W : WideString;
S: String;
begin
if VarIsEmpty(value) or VarIsNull(Value) then
begin
Expand Down
5 changes: 1 addition & 4 deletions Source/php4delphi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1616,10 +1616,7 @@ procedure TPHPEngine.PrepareIniEntry;

if FHandleErrors then
begin
// p := integer(GetProcAddress(PHPLib, 'zend_do_print'));
p := GetProcAddress(PHPLib, 'zend_error_cb');
p2 := @delphi_error_cb;
Move(p, p2, 1);
ppointer(GetProcAddress(PHPLib, 'zend_error_cb'))^ := @delphi_error_cb;
end;
{$IFNDEF PHP540}
if FSafeMode then
Expand Down

0 comments on commit 978b112

Please sign in to comment.