PHP 5.4 is now the current PHP version, having been officially released in March 2012. It adds a number of new features, and also removes some features that had been deprecated in previous versions.

learn more… | top users | synonyms

0
votes
0answers
10 views

Symfony2 intl only “en” supported

I am working on windows machine with Wamp installed and PHP 5.4.3 Currently, I am developing a web application using Symfony2. While creating a form with the FormType, I needed to insert an inputfield ...
0
votes
2answers
48 views

Can I instantiate an exception without throwing it?

I am using a SaaS error and exception logging service called Rollbar. In my code, I have a Rollbar static object that I can use to report exceptions to the service. For example: try { ... ...
0
votes
1answer
21 views

Debugging Zend project

I have transferred a working zend project to another server. It is a main domain and everything is set up correctly (I think). Header and footer are working good but in the middle content area it ...
0
votes
1answer
20 views

simple curl wrapper using abstract class Methods?

im trying to have a good practice at abstract class Methods so i created a simple curl wrapper class but unfortunately it doesn't work . abstract <?php abstract class curl{ private $url; ...
2
votes
1answer
68 views

>2GB file upload $_FILES[“file”][“size”] negative number

I am getting at >2 GB file upload negative number at $_FILES["file"]["size"]. However file uploads fine and filesize() also returns correct size. But how to solve $_FILES to return correct value? I ...
0
votes
1answer
23 views

Typo3 6.0: Install Tool Error Message

In conjunction with the failed installation of an extension (yag), the install tool is no longer available with the following error message: PHP Fatal error: Class '\\tx_install_session' not found ...
0
votes
0answers
14 views

PHP 5.4 error 500 not captured in log file

I upgraded from php 5.2.17 to 5.4 and after hours of tweaking i finally got it working. Now I'm having issue with error reporting. I set error_reporting = E_ALL and log_errors = On which logs to ...
0
votes
1answer
11 views

How to define a general method / catch it all method for an object?

On the same concept for object members, I can define generic __get and __set. How do I do the same for methods? class a{ public method __general(){ } public function b(){} } $r= new a(); ...
0
votes
1answer
38 views

call of static class inside _callstatic not working

I'm working on a plugin system, and at the moment I'm forced to use call_user_func_array. And that is slow and use memory. My function is working, and looks like this: public static function ...
0
votes
0answers
5 views

Connect xml and twig templates to form builder

I use Twig php templates. I want create auto form builder based on xml documents. For example: html page is saved in twig template and inside this template is set xml file translated on html 5 form. ...
0
votes
3answers
35 views

set_time_limit() has been disabled for security reasons

I need to set set_time_limit(0); in my PHP script but I get Warning: set_time_limit() has been disabled for security reasons I already tried increasing max_execution_time property in my php.ini ...
-2
votes
0answers
27 views

Parse block like in templates system [closed]

how can I parse text block from f.e. {{if condition}} text {{if condition}} other text{{/if}} {{/if}}
0
votes
0answers
19 views

Compiling Extension for PHP [closed]

I am trying to compile php extension using https://wiki.php.net/internals/windows/stepbystepbuild I have installed SDK 6.1 But when i run buildconf it gives error "buildconf" is not recognized ...
1
vote
2answers
20 views

Parse error: syntax error, unexpected '[', expecting ')' [duplicate]

I have this linecode $media = $dc->thumbnail->attributes()['url']; runs fine on my local (WAMP) php 5.4.3 but when i host it on my server cpanel then it gives this error Parse error: syntax ...
1
vote
0answers
31 views

PhpStorm autocompletion in traits

I have a trait that must always be mixed in to a subclass of \PHPUnit_Framework_TestCase. PhpStorm doesn't know this. Is there anything I can do to get PhpStorm to autocomplete and "typecheck" things ...

1 2 3 4
15 30 50 per page