Skip to content

error Notice: Undefined index: argv #35084

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

Closed
aboussaid opened this issue Nov 26, 2019 · 1 comment
Closed

error Notice: Undefined index: argv #35084

aboussaid opened this issue Nov 26, 2019 · 1 comment

Comments

@aboussaid
Copy link

Symfony version(s) affected: 4.4

Description
screenshot-127 0 0 1_8000-2019 11 26-11_22_00

How to reproduce

  • composer create-project symfony/skeleton test-debug-pack 4.4.*
  • composer require symfony/debug-pack

config/routes.yaml:

index:
   path: /
   controller: App\Controller\DefaultController::index

DefaultController.php:

namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;

class DefaultController extends AbstractController
{

    public function index()
    {
        dd($this);
        return new Response('My first page already!');
    }

}
@mdeherder
Copy link

mdeherder commented Dec 22, 2019

Same problem with a dd($credentials) into LoginFormAuthenticator.php

Defining register_argc_argv=on in php.ini solves the problem. But why?

@nicolas-grekas nicolas-grekas transferred this issue from symfony/debug-pack Dec 22, 2019
@xabbuh xabbuh added VarDumper and removed Debug labels Dec 23, 2019
xepozz added a commit to xepozz/symfony that referenced this issue Dec 26, 2019
nicolas-grekas pushed a commit to xepozz/symfony that referenced this issue Dec 28, 2019
nicolas-grekas added a commit that referenced this issue Dec 28, 2019
…extProvider (xepozz)

This PR was submitted for the master branch but it was merged into the 4.3 branch instead.

Discussion
----------

[VarDumper] Fix "Undefined index: argv" when using CliContextProvider

| Q             | A
| ------------- | ---
| Branch?       | 4.1, 4.2, 4.3, 4.4 or 5.0<!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #35084
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Commits
-------

340bb14 Fixed #35084
nicolas-grekas added a commit that referenced this issue Dec 28, 2019
* 4.3:
  Fixed #35084
  Add missing use statement
  [HttpClient] fix scheduling pending NativeResponse
  do not overwrite variable value
  [Profiler] wording
  Use spaces correctly to display options in DebugCommand
  X-Accel Nginx URL updated
  ticket-30197 [Validator] Add the missing translations for the Chinese (Taiwan) ("zh_TW") locale
  Fixed test added in #35022
  Use locale_parse for computing fallback locales
  [Console] Fix filtering out identical alternatives when there is a command loader
nicolas-grekas added a commit that referenced this issue Dec 28, 2019
* 5.0: (24 commits)
  Removing unused variable
  Fixed #35084
  Add missing use statement
  [HttpClient] fix scheduling pending NativeResponse
  do not overwrite variable value
  [Profiler] wording
  Use spaces correctly to display options in DebugCommand
  Add supported schemes doc blocks type
  X-Accel Nginx URL updated
  ticket-30197 [Validator] Add the missing translations for the Chinese (Taiwan) ("zh_TW") locale
  Fixed test added in #35022
  Use locale_parse for computing fallback locales
  [Console] Fix filtering out identical alternatives when there is a command loader
  [String][UnicodeString] Remove unneeded flag in chunk regex pattern
  add note about HTTP status code change
  Migrate server:log command away from WebServerBundle
  [DependencyInjection][CheckTypeDeclarationsPass] Handle \Closure for callable
  [Security] Fix missing defaults for auto-migrating encoders
  bumped Symfony version to 5.0.3
  updated VERSION for 5.0.2
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants