{"id":8046,"date":"2016-01-29T09:53:15","date_gmt":"2016-01-29T08:53:15","guid":{"rendered":"http:\/\/www.wjst.de\/blog\/?p=8046"},"modified":"2016-11-12T11:18:55","modified_gmt":"2016-11-12T10:18:55","slug":"updating-to-php-7-0","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2016\/01\/updating-to-php-7-0\/","title":{"rendered":"Updating to PHP 7.0"},"content":{"rendered":"<p>&#8220;Deprecated means deprecated&#8221; this is what I learned today. In practice, PHP finally kicked out some functions breaking now\u00a0my web serve. Errors may be expected<br \/>\n* when a variable is used but not declared before.<br \/>\n* split is deprecated, use explode instead and\u00a0take care that there is always something to explode<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nlist($a,$b) = explode(&quot;\/&quot;,&quot;$word\/&quot;);\r\n<\/pre>\n<p>* eregi is deprecated, use<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\npreg_match('\/hello\/', $string);\r\n<\/pre>\n<p>* end($array) is not working, use<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$arry&#x5B;count($array)-1]\r\n<\/pre>\n<p>The true\/false shortcuts\u00a01&gt;1 ? T : F isn&#8217;t anymore acceptable<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n1&gt;1 ? true : false\r\n<\/pre>\n<p>Unfortunately owncloud calendar sync stopped working &#8211; took me quite some time to find out why<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nArray to string conversion at \/owncloud\/3rdparty\/sabre\/dav\/lib\/CalDAV\/CalendarQueryValidator.php#62\r\n<\/pre>\n<p>As owncloud\u00a0<a href=\"https:\/\/github.com\/owncloud\/calendar\/issues\/1002\">hotfixes<\/a>\u00a0did not work and a own cloud update failed, I had to\u00a0switch back to 5.6.<\/p>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 26.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>&#8220;Deprecated means deprecated&#8221; this is what I learned today. In practice, PHP finally kicked out some functions breaking now\u00a0my web serve. Errors may be expected * when a variable is used but not declared before. * split is deprecated, use explode instead and\u00a0take care that there is always something to explode list($a,$b) = explode(&quot;\/&quot;,&quot;$word\/&quot;); * &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2016\/01\/updating-to-php-7-0\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Updating to PHP 7.0<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2975],"class_list":["post-8046","post","type-post","status-publish","format-standard","hentry","category-computer-software","tag-php-7"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/8046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=8046"}],"version-history":[{"count":7,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/8046\/revisions"}],"predecessor-version":[{"id":8517,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/8046\/revisions\/8517"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=8046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=8046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=8046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}