php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77616 PECL xdiff Win x64 build on windows.php.net does not work
Submitted: 2019-02-13 22:36 UTC Modified: 2021-05-17 21:48 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kentaro at ranvis dot com Assigned: cmb (profile)
Status: Closed Package: xdiff (PECL)
PHP Version: 7.3.2 OS: Windows x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kentaro at ranvis dot com
New email:
PHP Version: OS:

 

 [2019-02-13 22:36 UTC] kentaro at ranvis dot com
Description:
------------
PECL xdiff Windows x64 build obtainable at
https://pecl.php.net/package/xdiff/2.0.1/windows
does not function correctly.
The DLL itself loads fine but xdiff_* functions does not produce the correct data, and sometimes PHP process stops possibly inside the DLL execution.
I've tried x64 NTS build for PHP 7.0 through 7.3 but the result was the same, while x86 NTS for PHP 7.3 works fine.

Steps to reproduce:
1.Expand php-7.3.2-nts-Win32-VC15-x64.zip
2.Rename php.ini-development to php.ini
3 Copy php_xdiff.dll in php_xdiff-2.0.1-7.3-nts-vc15-x64.zip to ext/
4.Append "extension=ext/php_xdiff" to the end of php.ini
5.Run the test script

Test script:
---------------
<?php
$old = 'test';
$new = 'test2';
print bin2hex($new) . "\n";
$diff = xdiff_string_rabdiff($old, $new);
print bin2hex($diff) . "\n";
print bin2hex(xdiff_string_bpatch($old, $diff)) . "\n";

Expected result:
----------------
7465737432
c00159040400000001057465737432
7465737432

Actual result:
--------------
7465737432
c0015904040000000105
00009858c6 // this line may vary each time

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-03-28 08:00 UTC]
The following pull request has been associated:

Patch Name: Fixed bug #77616 (Windows x64 build not working).
On GitHub:  https://github.com/php/pecl-text-xdiff/pull/2
Patch:      https://github.com/php/pecl-text-xdiff/pull/2.patch
 [2021-05-17 11:21 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2021-05-17 21:48 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2021-05-17 21:48 UTC] cmb@php.net
^
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 00:01:31 2024 UTC