{"id":95,"date":"2006-10-05T00:42:15","date_gmt":"2006-10-05T07:42:15","guid":{"rendered":"https:\/\/dubinko.info\/blog\/2006\/10\/05\/how-php-can-be-annoying\/"},"modified":"2006-10-05T00:42:15","modified_gmt":"2006-10-05T07:42:15","slug":"how-php-can-be-annoying","status":"publish","type":"post","link":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/","title":{"rendered":"How PHP can be annoying"},"content":{"rendered":"<p>On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT:<\/p>\n<blockquote><p>mixed <strong class=\"methodname\">xslt_process<\/strong> ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] )<\/p><\/blockquote>\n<p>Wow, it returns a &#8220;mixed&#8221;, that&#8217;s some helpful documentation worth looking up. And all I have to do is pass in an &#8220;xmlcontainer&#8221; and &#8220;xslcontainer&#8221;. In practice, you end up with hard-to-read code like this:<\/p>\n<blockquote><p><code>$arguments = array('\/_xml' => $xml, '\/_xsl' => $xsl);<br \/>\n$xslproc = $xslt_create();<br \/>\n$result = xslt_process($xslproc, 'arg:\/_xml', 'arg:\/_xsl', NULL, $arguments);<\/code><\/p><\/blockquote>\n<p>Too bad I have already-parsed objects. And then there&#8217;s this:<\/p>\n<blockquote><p><strong>Warning<\/strong>: As of PHP 4.0.6, this function no longer takes XML strings in        <var class=\"parameter\">xmlcontainer<\/var> or        <var class=\"parameter\">xslcontainer<\/var>. Passing a string containing XML        to either of these parameters will result in a segmentation fault in        Sablotron versions up to and including version 0.95.<\/p><\/blockquote>\n<p>Whatever. In fairness, this falls mainly to the XSLT engine and not the language and the PHP 5 interfaces are much different and much improved. But still.. -m<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[27,1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-languages","category-stuff"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"mdubinko\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MicahLogic Queryopticon | Yields undecidable when preceded by its quotation\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How PHP can be annoying | MicahLogic Queryopticon\" \/>\n\t\t<meta property=\"og:description\" content=\"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2006-10-05T07:42:15+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2006-10-05T07:42:15+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How PHP can be annoying | MicahLogic Queryopticon\" \/>\n\t\t<meta name=\"twitter:description\" content=\"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#article\",\"name\":\"How PHP can be annoying | MicahLogic Queryopticon\",\"headline\":\"How PHP can be annoying\",\"author\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/#organization\"},\"datePublished\":\"2006-10-05T00:42:15-07:00\",\"dateModified\":\"2006-10-05T00:42:15-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#webpage\"},\"articleSection\":\"languages, stuff\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dubinko.info\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/tags\\\/stuff\\\/#listItem\",\"name\":\"stuff\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/tags\\\/stuff\\\/#listItem\",\"position\":2,\"name\":\"stuff\",\"item\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/tags\\\/stuff\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#listItem\",\"name\":\"How PHP can be annoying\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#listItem\",\"position\":3,\"name\":\"How PHP can be annoying\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/tags\\\/stuff\\\/#listItem\",\"name\":\"stuff\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/#organization\",\"name\":\"MicahLogic Queryopticon\",\"description\":\"Yields undecidable when preceded by its quotation\",\"url\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"mdubinko\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c1160c0ab9ce581a55013f96fd61356e166ffc9a00666a5062bc8121922fcdcd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"mdubinko\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#webpage\",\"url\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/\",\"name\":\"How PHP can be annoying | MicahLogic Queryopticon\",\"description\":\"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/2006\\\/10\\\/how-php-can-be-annoying\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2006-10-05T00:42:15-07:00\",\"dateModified\":\"2006-10-05T00:42:15-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/\",\"name\":\"MicahLogic Queryopticon\",\"description\":\"Yields undecidable when preceded by its quotation\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dubinko.info\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How PHP can be annoying | MicahLogic Queryopticon","description":"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a","canonical_url":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#article","name":"How PHP can be annoying | MicahLogic Queryopticon","headline":"How PHP can be annoying","author":{"@id":"https:\/\/dubinko.info\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/dubinko.info\/blog\/#organization"},"datePublished":"2006-10-05T00:42:15-07:00","dateModified":"2006-10-05T00:42:15-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#webpage"},"isPartOf":{"@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#webpage"},"articleSection":"languages, stuff"},{"@type":"BreadcrumbList","@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dubinko.info\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog\/tags\/stuff\/#listItem","name":"stuff"}},{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog\/tags\/stuff\/#listItem","position":2,"name":"stuff","item":"https:\/\/dubinko.info\/blog\/tags\/stuff\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#listItem","name":"How PHP can be annoying"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#listItem","position":3,"name":"How PHP can be annoying","previousItem":{"@type":"ListItem","@id":"https:\/\/dubinko.info\/blog\/tags\/stuff\/#listItem","name":"stuff"}}]},{"@type":"Organization","@id":"https:\/\/dubinko.info\/blog\/#organization","name":"MicahLogic Queryopticon","description":"Yields undecidable when preceded by its quotation","url":"https:\/\/dubinko.info\/blog\/"},{"@type":"Person","@id":"https:\/\/dubinko.info\/blog\/author\/admin\/#author","url":"https:\/\/dubinko.info\/blog\/author\/admin\/","name":"mdubinko","image":{"@type":"ImageObject","@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/c1160c0ab9ce581a55013f96fd61356e166ffc9a00666a5062bc8121922fcdcd?s=96&d=retro&r=g","width":96,"height":96,"caption":"mdubinko"}},{"@type":"WebPage","@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#webpage","url":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/","name":"How PHP can be annoying | MicahLogic Queryopticon","description":"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dubinko.info\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/#breadcrumblist"},"author":{"@id":"https:\/\/dubinko.info\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/dubinko.info\/blog\/author\/admin\/#author"},"datePublished":"2006-10-05T00:42:15-07:00","dateModified":"2006-10-05T00:42:15-07:00"},{"@type":"WebSite","@id":"https:\/\/dubinko.info\/blog\/#website","url":"https:\/\/dubinko.info\/blog\/","name":"MicahLogic Queryopticon","description":"Yields undecidable when preceded by its quotation","inLanguage":"en-US","publisher":{"@id":"https:\/\/dubinko.info\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"MicahLogic Queryopticon | Yields undecidable when preceded by its quotation","og:type":"article","og:title":"How PHP can be annoying | MicahLogic Queryopticon","og:description":"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a","og:url":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/","article:published_time":"2006-10-05T07:42:15+00:00","article:modified_time":"2006-10-05T07:42:15+00:00","twitter:card":"summary","twitter:title":"How PHP can be annoying | MicahLogic Queryopticon","twitter:description":"On a PHP 4 project, I need to use XSLT, but the interfaces seem far more complicated than they should be. Check out this declaration for the function to run an XSLT: mixed xslt_process ( resource xh, string xmlcontainer, string xslcontainer [, string resultcontainer [, array arguments [, array parameters]]] ) Wow, it returns a"},"aioseo_meta_data":{"post_id":"95","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-04 08:13:20","updated":"2025-12-10 02:24:24","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dubinko.info\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dubinko.info\/blog\/tags\/stuff\/\" title=\"stuff\">stuff<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow PHP can be annoying\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dubinko.info\/blog"},{"label":"stuff","link":"https:\/\/dubinko.info\/blog\/tags\/stuff\/"},{"label":"How PHP can be annoying","link":"https:\/\/dubinko.info\/blog\/2006\/10\/how-php-can-be-annoying\/"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8eo8l-1x","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":0,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"wp:attachment":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}