Git Product home page Git Product logo

Comments (10)

Sarjuuk avatar Sarjuuk commented on May 18, 2024

after the first block there should be a prompt
Press any key to continue:

and then the same screen as if using --dbconfig should appear.
it works for me, using PHP 5.5.9-1ubuntu4.11

i'll see if i can get it upgraded, in the meantime i'd suggest you comment the lines in
https://github.com/Sarjuuk/aowow/blob/master/includes/kernel.php#L107 to #L138 and add an
error_reporting(E_ALL)
Try again and see what it throws at you.

Also, if you are using WIN, the cli in general is a bit wonky (but should still work well enough)

from aowow.

Niknox avatar Niknox commented on May 18, 2024

I'm using Debian 8.

I don't see any prompt appearing, that's why I opened this issue.

Will try your suggestion asap.

Edit: I think I'm missing readline.

from aowow.

Niknox avatar Niknox commented on May 18, 2024

Yes I'm missing readline extension for PHP.

Sorry for taking your time, but you might want to add readline to the list of needed extensions.

Another issue is that enter is not working in your cli for me.
After select a numerical index to use the corresponding array I press for example 0, then I see Server Host: and can enter things, but I cannot send any signal for newline. Usually the key "Enter" should send LF to complete the input, but here "Enter" doesn't do anything.

This happens over SSH via putty

from aowow.

Sarjuuk avatar Sarjuuk commented on May 18, 2024

When you are using WIN, you also have to make do without this extension.
You inputs aren't handled because the script is trying to use a nonexistent function and hits a critical error. You are then writing stuff, but the script that should read it has already terminated. (or at least i think it does, you haven't provided any error message yet)

Try applying this patch, it probably works
https://gist.github.com/Sarjuuk/b88e45d48ac97b0b579a

from aowow.

Niknox avatar Niknox commented on May 18, 2024

See above, I'm using Debian. At the time of the last comment I already compiled php with readline support. So the script is working and I get a prompt I just cannot press "Enter". It doesn't seem that the script terminated as I could go back with any signal like "Arrow Down".

I won't apply your patch because readline is there and the functions work properly.

Output of E_ALL: http://pastebin.com/YX5An7xh (nothing important)

from aowow.

Sarjuuk avatar Sarjuuk commented on May 18, 2024

hmm, right.

Since i can't reproduce that we'll have to continue that game of guessing :/
Please, try to find out what character is your line terminator:
print_r or echo $keyId from here

it should be 10 (\n), but i half expect it to be 13 (\r) (which i originally ignored, because of WIN, which sends both)

from aowow.

Niknox avatar Niknox commented on May 18, 2024

Correct, it's 13 (CR). I'm not that much into ascii characters, but isn't it both \r\n in php for new line?
Edit: I'll try handling 13 like 10, I guess that should work.

from aowow.

Niknox avatar Niknox commented on May 18, 2024

This works for me, thanks for your help!

from aowow.

Sarjuuk avatar Sarjuuk commented on May 18, 2024

np

from aowow.

Sarjuuk avatar Sarjuuk commented on May 18, 2024

should be fixed with 00bd33a

finally :x

from aowow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.