Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jan 12, 2014
1 parent 4e525dd commit 6326038
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException){
phalcon_call_method(line, exception, "getline");

link_format = zend_ini_string_ex(SS("xdebug.file_link_format"), 0, &ini_exists);
if (!link_format || !ini_exists) {
if (!link_format || !ini_exists || !strlen(link_format)) {
link_format = "file://%f#%l";
}

Expand Down
2 changes: 2 additions & 0 deletions ext/tests/issue-1401.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Phalcon\Debug and link to file with an error - https://github.com/phalcon/cphalcon/issues/1401
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
xdebug.file_link_format=file://%f#%l
--FILE--
<?php
include('skipif.inc'); // This is to make sure the list of the included files is not empty
Expand Down
1 change: 1 addition & 0 deletions ext/tests/issue-680.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Implement getPut() - https://github.com/phalcon/cphalcon/issues/680
--SKIPIF--
<?php include('skipif.inc'); ?>
<?php if (!preg_match('/^cgi/', PHP_SAPI)) die('skip CGI SAPI is required'); ?>
--PUT--
string=hello&array[string]=world
--FILE--
Expand Down

0 comments on commit 6326038

Please sign in to comment.