Welcome! Log In Create A New Profile

Advanced

Is PHP for linux kernel 3.0 fully implemented?

Posted by skyrail 
Is PHP for linux kernel 3.0 fully implemented?
April 16, 2012 10:42AM
Hi,

I am using my dockstar as a small web server for local area usage and test before deploying my web app on a dedicated web host.
I installed debian squeeze with apache, mysql php 5.
It is working pretty well except on a few points that might become truely annoying in next part of my project.
OOP does not seem to work entirely. Did you notice you cannot a class parent contructor, this way:
class A
{
function A ($name)
{
dosomething
}
}
class B extends A
{
function B ($name)
{
parent::__construct ($name);
}
}

"parent key name is ignored" by php interpreter

Besides, function setlocale does not seem working when switching to another locale:
for example:
setlocale(LC_ALL, "fr-FR", "fr-FR.utf8", "fra");
$s=strftime("%A %Y %m %d, %H:%M:%S",$timestamp);
echo $s;
day of the week is always displayed in english. I tried to replace - by _ and nothing changed.

There might be other issues like this. Cannot provide an exhaustive list, unless I make systematical test.
I installed standard php without any extra settings.
Any idea to help me fix it or is there no solution?
WarheadsSE
Re: Is PHP for linux kernel 3.0 fully implemented?
April 16, 2012 02:32PM
The kernel has nothing to do with PHP
Re: Is PHP for linux kernel 3.0 fully implemented?
April 17, 2012 10:30AM
ok. I checked for OOP calling parent method with success.
But there was still a problem with locale. I had to reconfigure locales. I cannot imagine I had to do it.
Only english was installed.
What I did:

# sudo dpkg-reconfigure locales (check language to install and validate)
# sudo locale-gen fr_FR.UTF-8
# /etc/init.d/apache2 restart

now php can display date in french or any other language



Edited 2 time(s). Last edit at 04/17/2012 04:30PM by skyrail.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: