Bug #67726 [NEW]: Hex line number in error output
| From: | mbeccati@php.net | Date: | Thu, 31 Jul 2014 13:48:23 +0000 |
| Subject: | Bug #67726 [NEW]: Hex line number in error output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-186909@lists.php.net to get a copy of this message | ||
From: mbeccati
Operating system: Linux
PHP version: str_size_and_int64 branch
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Hex line number in error output
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
--
Edit bug report at https://bugs.php.net/bug.php?id=67726&edit=1
--