php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67726 Hex line number in error output
Submitted: 2014-07-31 13:48 UTC Modified: 2014-09-11 17:11 UTC
From: mbeccati@php.net Assigned: ab (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: str_size_and_int64 branch OS: Linux
Private report: No CVE-ID: None
 [2014-07-31 13:48 UTC] mbeccati@php.net
Description:
------------
During the daily run of the PHPUnit tests on my CI box, the int64 branch started to consistently fail during one test.

https://revive.beccati.com/bamboo/browse/PHP-PHPUN-PI64-65/test/case/13177490

as the line number in the error message is not a decimal integer:

Call to undefined function undefined_function() in /home/atlassian/bamboo/xml-data/build-dir/PHP-PHPUN-PI64/tests/Regression/GitHub/1340/Issue1340Test.php on line 0x3eu
 
In fact the call is happening at line 62 (0x3e).

Test script:
---------------
git clone git@github.com:sebastianbergmann/phpunit.git
cd phpunit

# Using grep here to filter out uninteresting bits

$INT64PATH/bin/php phpunit tests/Regression/GitHub/1340/Issue1340Test.php 2>&1 | grep undefined

Expected result:
----------------
PHPUnit_Framework_Exception: PHP Fatal error:  Call to undefined function undefined_function() in /home/atlassian/bamboo/xml-data/build-dir/PHP-PHPUN-PI64/tests/Regression/GitHub/1340/Issue1340Test.php on line 62
Fatal error: Call to undefined function undefined_function() in /home/atlassian/bamboo/xml-data/build-dir/PHP-PHPUN-PI64/tests/Regression/GitHub/1340/Issue1340Test.php on line 62


Actual result:
--------------
PHPUnit_Framework_Exception: Fatal error: Call to undefined function undefined_function() in /home/atlassian/bamboo/xml-data/build-dir/PHP-PHPUN-PI64/tests/Regression/GitHub/1340/Issue1340Test.php on line 0x3eu


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-04 09:07 UTC] mbeccati@php.net
-Assigned To: +Assigned To: ab
 [2014-09-11 17:11 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2014-09-11 17:11 UTC] ab@php.net
Matteo,

thanks for keeping track of that branch. This issue was probably due to wrong datatype used with %pd format. As it was merged with master, the line number datatypes wasn't touched, so I'm quite sure this issue will not be present. Thus I'll close this ticket. Feel free to reopen if I'm wrong.

Thanks

Anatol
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC