Questions tagged [php-5.2]

PHP 5.2 (now past End of Life) is the successor to PHP 5.1. It was released on November 2, 2006. Use this tag for version-specific issues relating to specifically to PHP 5.2.

PHP is a widely-used, general-purpose scripting language designed specifically for web development, though it has since been extended to other applications too. PHP is the most popular language for web development, powering over 20 million websites.

Note that support for PHP 5.2 has been officially discontinued. There are no externally supported versions of 5.2 (i.e. backported security fixes) so it is highly recommended you upgrade to a supported version.

Information

  • If you want to talk about PHP or if you have a question, you can come to Chat Room 11: PHP.
  • For global question on PHP, please use the generic tag:
245 questions
-2
votes
3 answers

Can't access static class members of singleton

I have a simple singleton class: class controller { // Store the single instance of controller private static $_controller = null; public static $user; public static $db; public static $page; public static $code; //…
Darren
  • 13,050
  • 4
  • 41
  • 79
-2
votes
1 answer

PHP class method treats parameter as an object instead of string/dynamically interpreting the parameter data type

I discovered something new today. I have a PHP class with typical members, private, public and protected methods. One of the methods is this: protected function processThis($dataString) { $dataStringJson = json_decode($dataString); } And this…
Parijat Kalia
  • 4,929
  • 10
  • 50
  • 77
-2
votes
1 answer

Preview of html form with on click email fwd and opens a html form

preview of form data of an html form at the same time send email and open a new form control flow is like this form1.html// included email1.php in action form2.html// i included in email1.php email2.php// i included success.html please help in…
-3
votes
1 answer

Anonymous function in array_walk is throwing error on PHP 5.2

Below is array_walk function which is throwing error on php 5.2. I have 5.2 version on stage and 5.3 on local and dev. Code works fine on local and dev php version. foreach($favTracks as $track_id) { array_walk($tracks, function ($t, $k) use…
Kalashir
  • 1,099
  • 4
  • 15
  • 38
-8
votes
2 answers

Error with resolution operator while referencing model type depending on dynamic variable (PHP 5.2)

Background Information: I am trying to simplify the structure of my Yii app, by moving a common function from child classes into the base class they are extending from. I moved the loadModel($id) function from the User (child) controller into the…
Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
1 2 3
16
17