Skip to content

Commit

Permalink
Test case for phalcon#2819
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Sep 21, 2014
1 parent b723b73 commit 20be6bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ext/tests/issue-2819.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--TEST--
Segmentation fault in zim_Phalcon_Http_Request_getBasicAuth - https://github.com/phalcon/cphalcon/issues/2819
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$request = new \Phalcon\Http\Request();
$_SERVER['PHP_AUTH_USER'] = '123456';
var_dump($request->getBasicAuth());
?>
--EXPECT--
array(2) {
["username"]=>
string(6) "123456"
["password"]=>
string(0) ""
}

0 comments on commit 20be6bc

Please sign in to comment.