Dec 8, 2015

PHP - How to upgrade php 5.4 to php 5.5 on opensuse

Since, the current repository dont have 5.5.x version. try to check this one. php5

In my case, after I click "Direct Install" it lead me to this page and have content.

For us to have ability to upgrade PHP new repository. with the data highlighted on the screenshot.

Jun 26, 2015

AWS - Extract protected API response data.

In most AWS API call you will get response model.

object(Guzzle\Service\Resource\Model)#97 (2) {
  ["data":protected]=> Array(THE DATA YOU NEED TO ACCESS HERE)

Here my sample, call to describe the ec2 instance.

$result = $client->describeInstances();

var_dump($result); // Display the result in Guzzle\Service\Resource\Model

$response = $result->toArray(); // Convert the protected data, into array

// Display the intance IP information.

Mar 26, 2015

PHP - preg_match: Compilation failed: unknown option bit(s) set at offset 0

preg_match issue encounter after one admin update one service, unfortunately some common library need to update. Until those common library need by php thats why php also included on update.

After trying to figure out and googling the error, I found the preg_match uses prce as its library. One article on said he/she can able to work on php 4.x with prce 8.x. Since my prce still 7.8 I decide to update to 8.x and miracle happen(Issue was fixed).

NOTE: After you update your prce make sure to restart your apache.