PHP 5.3.3 marks the end of life for PHP 5.2, and many users are having to change their code to cope with deprecated features.

learn more… | top users | synonyms

0
votes
1answer
35 views

What problems could I meet with Laravel 4 on PHP 5.3.3?

I know that the Laravel 4 requirements are PHP >= 5.3.7 but my client must recent application server only has PHP 5.3.3. Yes, three years old version... I need more arguments to explain the situation ...
0
votes
0answers
36 views

Weird behaviour of PHP 5.4 when extending a class, can anyone explain this?

I have a class which extend a class class Ai1ec_Database extends wpdb { ... } the superclass wpdb has a constructor function function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) { ...
0
votes
1answer
7 views

ZLIB inflate give 'data error' in PHP

I've got a file that has zlib deflated blocks of 4096 bytes. I'm able to inflate at least 1 block of 4096 bytes with C++, using Minzip's inflate implementation, without garbled text or data error. ...
0
votes
0answers
24 views

magento add new payment method

I am trying to add new payment methods in magento, But I am facing some kind of issue. I have created the extension and placed that files under /app/code/community/Companyname/Module name I have ...
0
votes
1answer
21 views

cakephp join does not return associated model data

I have three models in a cakephp application: ModelX, ModelY and ModelZ. The table for ModelX has the fields parent_id, lft and rght. The associations between the models are as follows: ModelX hasOne ...
0
votes
1answer
24 views

return query result only if value of field on associated model is not empty cakephp

Let's say I have ModelA and ModelB in a CakePHP application. The type of association between ModelA and ModelB is the following: ModelA hasOne ModelB ModelB belongsTo ModelB I want a find() query ...
0
votes
2answers
23 views

how to persist data for two forms

I have a page that contains two forms, each form is displayed by clicking on a tab, and each of them has a button "add", the problem is when I click add either the first or the second form I can't ...
0
votes
1answer
30 views

cakephp isAuthorized being called on every action call

I have a controller in a CakePHP application in which I have a bunch of actions. I'm using the ACL Component to manage which user is allowed to execute which actions in my controller. I have an ...
1
vote
0answers
28 views

srand on php 5.3 produce unpredictable output

This code on PHP 5.2 or 5.4 produce a predictable order, but on PHP 5.3 srand(seed) is ignored. $n = date('YmdHi'); $a = explode('|','uno|due|tre|quattro|cinque'); printf("%s\n",$n); print_r($a); ...
0
votes
2answers
31 views

Mock an internal function call of current class under test

I want to test this function: public function reset() { if(!$this->onBeforeReset()) // Protected, internal method { return false; } // Continue with tests } I'd ...
1
vote
0answers
21 views

Google charts API doesn't decode HTML entities although I passed them decoded

So I'm using the google charts API , However when I decode HTML entities passed to the API with the data , the charts are displayed and the titles still contain the un-decoded HTML entities and I see ...
2
votes
2answers
16 views

accessing xml property using php

In an xml respone below <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> </lst> <lst name="initArgs"> ...
-2
votes
0answers
44 views

How could I make the page load faster , my script needs to be optimized [closed]

The script below works fine to display my request from the Twitter API but it is AWFULLY slow , so I was wondering what could cause the script to be so slow ... Below is my script .. the first part ...
0
votes
0answers
38 views

PHP 5.2 permitted object syntax to call array index?

We recently had a disaster and had to move our php web application from PHP Version 5.2.6-1+lenny16 to PHP Version 5.3.3-7+squeeze15 and found a seemingly important difference. In our application, ...
0
votes
0answers
35 views

array itterations too many foreach? any ideas on reducing it

protected static function arrayShuffling($itemsArray) { $itemSwitching = array();Switching $shItem= array(); foreach ($itemArray as $i => $myItem) { if ...

1 2 3 4 5 43
15 30 50 per page