{"id":6813,"date":"2014-04-23T08:08:51","date_gmt":"2014-04-23T08:08:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-php5-3-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:47:12","modified_gmt":"2022-08-30T15:47:12","slug":"problem-about-php5-3-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-php5-3-collection-of-common-programming-errors\/","title":{"rendered":"problem about php5.3-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/396f2b24c524b3bda2040db179959876?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStephen Orr<br \/>\nphp-apc php5.3 open-basedir symfony<br \/>\nI&#8217;m currently setting up a shared staging environment for one of our applications, written in PHP5.3 and using the Symfony2 framework.If I only host a single instance of the application per server, everything works as it should.However, if I then deploy additional instances of the application (which may or may not share the exact same code, dependent on client customisations), I get errors like this:[Tue Nov 06 10:19:23 2012] [error] [client 127.0.0.1] PHP Warning: require(\/var\/www\/vhosts\/appli<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0309e362d8d8e22a1572de05d41f0d9a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCoombesy<br \/>\ncentos5 php5.3<br \/>\nI&#8217;m tring to install phpdox https:\/\/github.com\/theseer\/phpdox using composer. I&#8217;ve successfully installed it locally, but when I try on my server (centos 5.9) composer declares all is ok, but running phpdox throws:Warning: require(TheSeer\/DirectoryScanner\/autoload.php): failed to open stream: No such file or directory in \/opt\/phpdox\/phpdox.php on line 45 Fatal error: require(): Failed opening required &#8216;TheSeer\/DirectoryScanner\/autoload.php&#8217; (include_path=&#8217;.:\/usr\/lib\/php:\/usr\/local\/lib\/php&#8217;) in \/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/36ef511952e0da0c37ef9af136fe3e8c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRazor<br \/>\nwindows-server-2008-r2 iis7.5 imagemagick php5.3<br \/>\nI have managed to get imagemagick working (tested using the command line example on their website) It also appears that the php extension is correctly installed: I can see it listed in my phpinfo(); list.However, when I try to run the following code:$im = new imagick( &#8216;examples.jpg&#8217; );$im-&gt;thumbnailImage( 200, 0);$im-&gt;writeImage( &#8216;a_thumbnail.jpg&#8217; );The execution stops at the second line, because it cannot find the thumbnailImage method.What I can think of is that some user doesn&#8217;t have en<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/6sbad.png?s=32&amp;g=1\" \/><br \/>\nstrimpak<br \/>\napache2 swap memory-leak php5.3<br \/>\nOkay, this one&#8217;s weird for me. I have a wordpress mu site under a dedicated server. It runs Apache 2.2.21 and php 5.3.10. When msn and google bots crawls my site the system crashes. The system crashes and on other occasions, that I have not got clear. But once before it crashed, I run netstat -an and find those interesting things: (supposing my ip is a.b.c.d)Local Address Remote Address &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; a.b.c.d.xxxx a.b.c.d.80a lot of times and more p<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cfc9b0668c17f2a247fadac67bae60a0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncodeKudu<br \/>\nphp5.3<br \/>\nI have php version 5.3.22 on Centos Linux. I currently have this in my phpinfo() output:.\/configure&#8217; &#8216;&#8211;disable-fileinfo&#8217; &#8216;&#8211;disable-pdo&#8217; If I run:pecl install PDOI get:WARNING: &#8220;pecl\/PDO&#8221; is deprecated in favor of &#8220;channel:\/\/http:\/\/svn.php.net\/viewvc\/php\/php-src\/trunk\/ext\/pdo\/\/ext\/PDO&#8221; downloading PDO-1.0.3.tgz &#8230; Starting to download PDO-1.0.3.tgz (52,613 bytes) &#8230;&#8230;&#8230;&#8230;.done: 52,613 bytes 12 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Mo<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stephen Orr php-apc php5.3 open-basedir symfony I&#8217;m currently setting up a shared staging environment for one of our applications, written in PHP5.3 and using the Symfony2 framework.If I only host a single instance of the application per server, everything works as it should.However, if I then deploy additional instances of the application (which may or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-6813","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6813"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6813\/revisions"}],"predecessor-version":[{"id":8924,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6813\/revisions\/8924"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}