Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a bug? #2819

Closed
panlatent opened this issue Sep 18, 2014 · 2 comments
Closed

This is a bug? #2819

panlatent opened this issue Sep 18, 2014 · 2 comments

Comments

@panlatent
Copy link

$request = new Phalcon\Http\Request();
$_SERVER['PHP_AUTH_USER'] = '123456';
var_dump($request->getBasicAuth());

// Don't set the value $_SERVER['PHP_AUTH_PW']
// This script will run until overflow. If this is a bug why I can't find in the C code?

@sjinks
Copy link
Contributor

sjinks commented Sep 21, 2014

Core was generated by `php 2819.php'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
106     ../sysdeps/x86_64/strlen.S: Немає такого файла або каталогу.
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007fbbcb6caa73 in zim_Phalcon_Http_Request_getBasicAuth (ht=0, return_value=0x7fbbd7f9b0d8, return_value_ptr=0x7fbbd8028120, this_ptr=0x7fbbd8063d08, return_value_used=1, tsrm_ls=0x2a3dbc0)
    at /home/vladimir/workspace/cphalcon/ext/http/request.c:2040
#2  0x00007fbbcb626e90 in phalcon_execute_internal (execute_data_ptr=0x7fbbd8028238, fci=0x0, return_value_used=1, tsrm_ls=0x2a3dbc0) at /home/vladimir/workspace/cphalcon/ext/phalcon.c:57
#3  0x0000000000a701ab in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbbd8028238, tsrm_ls=0x2a3dbc0) at /build/buildd/php-5.5.4/Zend/zend_vm_execute.h:552
#4  0x0000000000a70c0f in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7fbbd8028238, tsrm_ls=0x2a3dbc0) at /build/buildd/php-5.5.4/Zend/zend_vm_execute.h:685
#5  0x0000000000a6f4ac in execute_ex (execute_data=0x7fbbd8028238, tsrm_ls=0x2a3dbc0) at /build/buildd/php-5.5.4/Zend/zend_vm_execute.h:363
#6  0x0000000000a6f592 in zend_execute (op_array=0x7fbbd8064c38, tsrm_ls=0x2a3dbc0) at /build/buildd/php-5.5.4/Zend/zend_vm_execute.h:388
#7  0x0000000000a2a1a0 in zend_execute_scripts (type=8, tsrm_ls=0x2a3dbc0, retval=0x0, file_count=3) at /build/buildd/php-5.5.4/Zend/zend.c:1318
#8  0x000000000096c59e in php_execute_script (primary_file=0x7fffe42e45f0, tsrm_ls=0x2a3dbc0) at /build/buildd/php-5.5.4/main/main.c:2489
#9  0x0000000000aea50f in do_cli (argc=2, argv=0x2a3dae0, tsrm_ls=0x2a3dbc0) at /build/buildd/php-5.5.4/sapi/cli/php_cli.c:994
#10 0x0000000000aebb36 in main (argc=2, argv=0x2a3dae0) at /build/buildd/php-5.5.4/sapi/cli/php_cli.c:1378

@ovr
Copy link
Contributor

ovr commented Sep 23, 2014

Немає такого файла або каталогу.

Love this text in log 😸

wupsbr pushed a commit to wupsbr/cphalcon that referenced this issue Jul 8, 2015
wupsbr pushed a commit to wupsbr/cphalcon that referenced this issue Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants