<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mattintosh4</author_name>
  <author_url>https://blog.hatena.ne.jp/mattintosh4/</author_url>
  <blog_title>mattintosh note</blog_title>
  <blog_url>https://mattintosh-note.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>YAML</anon>
  </categories>
  <description>PHP アプリケーションが使用している YAML ファイルに何らかの誤りがあってアプリケーションが正しく動いていない気がするのでシンタックスチェックを行うことにした。YAML のチェックに yq 入れるのもなぁ…ということで PECL の YAML ライブラリを使うことにした。 YAML ライブラリには yaml_parse() と yaml_parse_file() があるが今回は yaml_parse_file() でコマンドラインからファイルを引数として渡すようにする。 _IFS=$IFS IFS=$'\n' set -- $(find /var/www/html -iregex &quot;.*…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmattintosh-note.jp%2Fentry%2F20200827%2F1598507578&quot; title=&quot;PHPでYAMLファイルのシンタックスチェックをする - mattintosh note&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-27 14:52:58</published>
  <title>PHPでYAMLファイルのシンタックスチェックをする</title>
  <type>rich</type>
  <url>https://mattintosh-note.jp/entry/20200827/1598507578</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
