Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
I'm a big fan of PHP interactive mode (php -a). Today I decided to install PHP 5.4 to play around a little bit. It's fun to use the new built-in server and all that stuff, but I was very sad when I discovered that the interactive mode doesn't work.
php -a
I installed PHP 5.4 on my Ubuntu by adding the PPA:
add-apt-repository ppa:ondrej/php5 apt-get update apt-get install php5
And this is what I get when I run php -a:
$ php -a Interactive mode enabled
Aaaaand nothing more. As far as I know this PPA follows the newest PHP5 maintained by Debian PKG PHP Team and as far as I know the interactive mode is also usually broken on freshly installed Debians.
Any ideas on how to get it back? Preferably using some other PPA or at least without compiling - that's usually less painful.
My PPA (ppa:ondrej/php5) was created as an exact copy of Debian php5 source package. There was a problem that Debian's libedit didn't include the required patch for interactive mode (at least I thought so, because the bug on libedit wasn't closed). I have just found that this issue has been already solved in libedit (2.11-20080614-4), but the bug wasn't properly closed.
Anyway the good news is that since this bug in libedit has been already solved in Debian, I will be rebuilding php5 with libedit and it will be included from php5 >= 5.4.12-2(~dist+1).
[Edit]: Also there's now php5-readline module, thanks to Andreas Pour, who poked me that it can be built and packaged now.
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.