Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Future of this project #34

Open
repat opened this issue Sep 9, 2019 · 2 comments
Open

Future of this project #34

repat opened this issue Sep 9, 2019 · 2 comments
Assignees
Labels

Comments

@repat
Copy link
Contributor

repat commented Sep 9, 2019

@willdurand:

I just installed dev-master (laravel 5.8|php 7.3) and it works. However I get these 2 warnings below.

PHP Deprecated: Passing a command as string when creating a "Symfony/Component/Process/Process" instance is deprecated since Symfony 4.2, pass it as an array of its arguments instead, or use the "Process::fromShellCommandline()" constructor if you need features provided by the shell. in ...vendor/symfony/process/Process.php on line 147
PHP Deprecated: Passing a command as string when creating a "Symfony/Component/Process/Process" instance is deprecated since Symfony 4.2, pass it as an array of its arguments instead, or use the "Process::fromShellCommandline()" constructor if you need features provided by the shell. in ...vendor/symfony/process/Process.php on line 147

I'm not sure if you want to drop support for older symfony/process or you want to somehow figure out the symfony/process version? I wasn't aware that I have write access to this repo, I made my own little fork over at github.com/repat/nmap but would be willing to maintain this instead if that's ok? (Also accidentally clicked a merge button the wrong way, but it's cleaned up ;-) - that's how I found out)

So for symfony/process ^4.0 to work without warnings, we have to pass the arguments as an array as you can see here:

https://github.com/repat/nmap/blob/master/src/Nmap/Nmap.php#L104

I would now:

  1. Create version 0.6.0 with the warnings
  2. Drop support for symfony/process 2.X, only support ^3.4 (see below, 2.X is not supported anyway)
  3. Pass arguments as array because that's how it's done in ^3.4 and ^4.0
  4. Port over some of the changes I made (PSR4/PHPunit)
  5. Create version 0.7.0
  6. Delete my repo and maintain this (we actively use it)

Let me know what you think :-)

image

@repat repat added the question label Sep 9, 2019
@repat repat self-assigned this Sep 9, 2019
@willdurand
Copy link
Owner

Yeah, you can drop support for very old symfony/process versions.

@wvdongen
Copy link

@repat This fork is maintained https://github.com/DavidGoodwin/nmap/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants