|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76208 Using Yaf_Response_HTTP::setRedirect in CLI mode
Submitted: 2018-04-11 11:25 UTC Modified: 2021-09-09 10:36 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: fanjiapeng at 126 dot com Assigned:
Status: Open Package: yaf (PECL)
PHP Version: 7.2.4 OS: CentOS release 6.2 (Final)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fanjiapeng at 126 dot com
New email:
PHP Version: OS:


 [2018-04-11 11:25 UTC] fanjiapeng at 126 dot com
In some cases, the function is called in CLI mode. Although it does not work in CLI mode.

Test script:
class IndexController extends Yaf_Controller_Abstract
    public function indexAction()

        $a = $b;
        $response = new Yaf_Response_HTTP(); 

Expected result:

Actual result:
Notice: Undefined variable: b in /www/application/controllers/Index.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /www/application/controllers/Index.php:8) in /www/application/controllers/Index.php on line 11


yaf_response_http.patch (last revision 2018-04-11 12:05 UTC by fanjiapeng at 126 dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-09 10:36 UTC]
If this is still unresolved, please submit a pull request to the

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 20:01:30 2024 UTC