カテゴリー別アーカイブ: IT Tips

php7.0.12 リリース

Version 7.0.12

  • Core:
    • Fixed bug #73025 (Heap Buffer Overflow in virtual_popen of zend_virtual_cwd.c).
    • Fixed bug #72703 (Out of bounds global memory read in BF_crypt triggered by password_verify).
    • Fixed bug #73058 (crypt broken when salt is ‘too’ long).
    • Fixed bug #69579 (Invalid free in extension trait).
    • Fixed bug #73156 (segfault on undefined function).
    • Fixed bug #73163 (PHP hangs if error handler throws while accessing undef const in default value).
    • Fixed bug #73172 (parse error: Invalid numeric literal).
    • Fixed bug #73240 (Write out of bounds at number_format).
    • Fixed bug #73147 (Use After Free in PHP7 unserialize()).
    • Fixed bug #73189 (Memcpy negative size parameter php_resolve_path).
  • BCmath:
    • Fixed bug #73190 (memcpy negative parameter _bc_new_num_ex).
  • COM:
    • Fixed bug #73126 (Cannot pass parameter 1 by reference).
  • Date:
    • Fixed bug #73091 (Unserializing DateInterval object may lead to __toString invocation).
  • DOM:
    • Fixed bug #73150 (missing NULL check in dom_document_save_html).
  • Filter:
    • Fixed bug #72972 (Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE).
    • Fixed bug #73054 (default option ignored when object passed to int filter).
  • GD:
    • Fixed bug #67325 (imagetruecolortopalette: white is duplicated in palette).
    • Fixed bug #50194 (imagettftext broken on transparent background w/o alphablending).
    • Fixed bug #73003 (Integer Overflow in gdImageWebpCtx of gd_webp.c).
    • Fixed bug #53504 (imagettfbbox gives incorrect values for bounding box).
    • Fixed bug #73157 (imagegd2() ignores 3rd param if 4 are given).
    • Fixed bug #73155 (imagegd2() writes wrong chunk sizes on boundaries).
    • Fixed bug #73159 (imagegd2(): unrecognized formats may result in corrupted files).
    • Fixed bug #73161 (imagecreatefromgd2() may leak memory).
  • Intl:
    • Fixed bug #73218 (add mitigation for ICU int overflow).
  • Mbstring:
    • Fixed bug #66797 (mb_substr only takes 32-bit signed integer).
    • Fixed bug #66964 (mb_convert_variables() cannot detect recursion).
    • Fixed bug #72992 (mbstring.internal_encoding doesn’t inherit default_charset).
  • Mysqlnd:
    • Fixed bug #72489 (PHP Crashes When Modifying Array Containing MySQLi Result Data).
  • Opcache:
    • Fixed bug #72982 (Memory leak in zend_accel_blacklist_update_regexp() function).
  • OpenSSL:
    • Fixed bug #73072 (Invalid path SNI_server_certs causes segfault).
    • Fixed bug #73276 (crash in openssl_random_pseudo_bytes function).
    • Fixed bug #73275 (crash in openssl_encrypt function).
  • PCRE:
    • Fixed bug #73121 (Bundled PCRE doesn’t compile because JIT isn’t supported on s390).
    • Fixed bug #73174 (heap overflow in php_pcre_replace_impl).
  • PDO_DBlib:
    • Fixed bug #72414 (Never quote values as raw binary data).
    • Allow \PDO::setAttribute() to set query timeouts.
    • Handle SQLDECIMAL/SQLNUMERIC types, which are used by later TDS versions.
    • Add common PDO test suite.
    • Free error and message strings when cleaning up PDO instances.
    • Fixed bug #67130 (\PDOStatement::nextRowset() should succeed when all rows in current rowset haven’t been fetched).
    • Ignore potentially misleading dberr values.
  • phpdbg:
    • Fixed bug #72996 (phpdbg_prompt.c undefined reference to DL_LOAD).
    • Fixed next command not stopping when leaving function.
  • Session:
    • Fixed bug #68015 (Session does not report invalid uid for files save handler).
    • Fixed bug #73100 (session_destroy null dereference in ps_files_path_create).
  • SimpleXML:
    • Fixed bug #73293 (NULL pointer dereference in SimpleXMLElement::asXML()).
  • SOAP:
    • Fixed bug #71711 (Soap Server Member variables reference bug).
    • Fixed bug #71996 (Using references in arrays doesn’t work like expected).
  • SPL:
    • Fixed bug #73257, Fixed bug #73258 (SplObjectStorage unserialize allows use of non-object as key).
  • SQLite3:
    • Updated bundled SQLite3 to 3.14.2.
  • Zip:
    • Fixed bug #70752 (Depacking with wrong password leaves 0 length files).

http://www.php.net/ChangeLog-7.php#7.0.12

ネイティブphp開発で導入しておくと便利な関数

<?php
# MySQLで扱う値(配列である前提)を一気に特殊文字エスケープ
function my_esc($array=array())
{
	return array_map("mysqli::real_escape_string",$array);
}
# ビュー側で配列やオブジェクトの構造を確認するときに便利な関数
function print_l($array=array())
{
	print "<pre>\n";
	print_r($array);
	print "</pre>\n";
}
# メールヘッダ生成用に文字列をエンコードする関数
function ml_header_enc($str)
{
	return "=?iso-2022-jp?B?".base64_encode(mb_convert_encoding($str,"ISO-2022-JP-MS","auto"))."?=";
}
?>

php 7.0.11 リリース

Version 7.0.11

  • Core:
    • Fixed bug #72944 (Null pointer deref in zval_delref_p).
    • Fixed bug #72943 (assign_dim on string doesn’t reset hval).
    • Fixed bug #72911 (Memleak in zend_binary_assign_op_obj_helper).
    • Fixed bug #72813 (Segfault with __get returned by ref).
    • Fixed bug #72767 (PHP Segfaults when trying to expand an infinite operator).
    • Fixed bug #72854 (PHP Crashes on duplicate destructor call).
    • Fixed bug #72857 (stream_socket_recvfrom read access violation).
  • COM:
    • Fixed bug #72922 (COM called from PHP does not return out parameters).
  • Dba:
    • Fixed bug #70825 (Cannot fetch multiple values with group in ini file).
  • FTP:
    • Fixed bug #70195 (Cannot upload file using ftp_put to FTPES with require_ssl_reuse).
  • GD:
    • Fixed bug #72709 (imagesetstyle() causes OOB read for empty $styles).
    • Fixed bug #66005 (imagecopy does not support 1bit transparency on truecolor images).
    • Fixed bug #72913 (imagecopy() loses single-color transparency on palette images).
    • Fixed bug #68716 (possible resource leaks in _php_image_convert()).
  • iconv:
    • Fixed bug #72320 (iconv_substr returns false for empty strings).
  • IMAP:
    • Fixed bug #72852 (imap_mail null dereference).
  • Intl:
    • Fixed bug #65732 (grapheme_*() is not Unicode compliant on CR LF sequence).
    • Fixed bug #73007 (add locale length check).
  • Mysqlnd:
    • Fixed bug #72293 (Heap overflow in mysqlnd related to BIT fields).
  • OCI8:
    • Fixed invalid handle error with Implicit Result Sets.
    • Fixed bug #72524 (Binding null values triggers ORA-24816 error).
  • Opcache:
    • Fixed bug #72949 (Typo in opcache error message).
  • PDO:
    • Fixed bug #72788 (Invalid memory access when using persistent PDO connection).
    • Fixed bug #72791 (Memory leak in PDO persistent connection handling).
    • Fixed bug #60665 (call to empty() on NULL result using PDO::FETCH_LAZY returns false).
  • PDO_DBlib:
    • Implemented stringify ‘uniqueidentifier’ fields.
  • PDO_pgsql:
    • Implemented FR #72633 (Postgres PDO lastInsertId() should work without specifying a sequence).
    • Fixed bug #72759 (Regression in pgo_pgsql).
  • Phar:
    • Fixed bug #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile).
    • Fixed bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile).
  • Reflection:
    • Fixed bug #72846 (getConstant for a array constant with constant values returns NULL/NFC/UKNOWN).
  • Session:
    • Fixed bug #72724 (PHP7: session-uploadprogress kills httpd).
    • Fixed bug #72940 (SID always return “name=ID”, even if session cookie exist).
  • SimpleXML:
    • Fixed bug #72971 (SimpleXML isset/unset do not respect namespace).
    • Fixed bug #72957 (Null coalescing operator doesn’t behave as expected with SimpleXMLElement).
  • SPL:
    • Fixed bug #73029 (Missing type check when unserializing SplArray).
  • Standard:
    • Fixed bug #55451 (substr_compare NULL length interpreted as 0).
    • Fixed bug #72278 (getimagesize returning FALSE on valid jpg).
    • Fixed bug #65550 (get_browser() incorrectly parses entries with “+” sign).
  • Streams:
    • Fixed bug #72853 (stream_set_blocking doesn’t work).
    • Fixed bug #72764 (ftps:// opendir wrapper data channel encryption fails with IIS FTP 7.5, 8.5).
    • Fixed bug #71882 (Negative ftruncate() on php://memory exhausts memory).
  • SQLite3:
    • Downgraded bundled SQLite to 3.8.10.2, see #73068
  • Sysvshm:
    • Fixed bug #72858 (shm_attach null dereference).
  • XML:
    • Fixed bug #72085 (SEGV on unknown address zif_xml_parse).
    • Fixed bug #72714 (_xml_startElementHandler() segmentation fault).
  • Wddx:
    • Fixed bug #72860 (wddx_deserialize use-after-free).
    • Fixed bug #73065 (Out-Of-Bounds Read in php_wddx_push_element).
  • ZIP:
    • Fixed bug #68302 (impossible to compile php with zip support).

http://www.php.net/ChangeLog-7.php#7.0.11

php 7.0.10 リリース

Version 7.0.10

  • Core:
    • Fixed bug #72629 (Caught exception assignment to variables ignores references).
    • Fixed bug #72594 (Calling an earlier instance of an included anonymous class fatals).
    • Fixed bug #72581 (previous property undefined in Exception after deserialization).
    • Fixed bug #72496 (Cannot declare public method with signature incompatible with parent private method).
    • Fixed bug #72024 (microtime() leaks memory).
    • Fixed bug #71911 (Unable to set –enable-debug on building extensions by phpize on Windows).
    • Fixed bug causing ClosedGeneratorException being thrown into the calling code instead of the Generator yielding from.
    • Implemented FR #72614 (Support “nmake test” on building extensions by phpize).
    • Fixed bug #72641 (phpize (on Windows) ignores PHP_PREFIX).
    • Fixed potential segfault in object storage freeing in shutdown sequence.
    • Fixed bug #72663 (Create an Unexpected Object and Don’t Invoke __wakeup() in Deserialization).
    • Fixed bug #72681 (PHP Session Data Injection Vulnerability).
    • Fixed bug #72683 (getmxrr broken).
    • Fixed bug #72742 (memory allocator fails to realloc small block to large one).
  • Bz2:
    • Fixed bug #72837 (integer overflow in bzdecompress caused heap corruption).
  • Calendar:
    • Fixed bug #67976 (cal_days_month() fails for final month of the French calendar).
    • Fixed bug #71894 (AddressSanitizer: global-buffer-overflow in zif_cal_from_jd).
  • COM:
    • Fixed bug #72569 (DOTNET/COM array parameters broke in PHP7).
  • CURL:
    • Fixed bug #71709 (curl_setopt segfault with empty CURLOPT_HTTPHEADER).
    • Fixed bug #71929 (CURLINFO_CERTINFO data parsing error).
    • Fixed bug #72674 (Heap overflow in curl_escape).
  • DOM:
    • Fixed bug #66502 (DOM document dangling reference).
  • EXIF:
    • Fixed bug #72735 (Samsung picture thumb not read (zero size)).
    • Fixed bug #72627 (Memory Leakage In exif_process_IFD_in_TIFF).
  • Filter:
    • Fixed bug #71745 (FILTER_FLAG_NO_RES_RANGE does not cover whole 127.0.0.0/8 range).
  • FPM:
    • Fixed bug #72575 (using –allow-to-run-as-root should ignore missing user).
  • GD:
    • Fixed bug #72596 (imagetypes function won’t advertise WEBP support).
    • Fixed bug #72604 (imagearc() ignores thickness for full arcs).
    • Fixed bug #70315 (500 Server Error but page is fully rendered).
    • Fixed bug #43828 (broken transparency of imagearc for truecolor in blendingmode).
    • Fixed bug #66555 (Always false condition in ext/gd/libgd/gdkanji.c).
    • Fixed bug #68712 (suspicious if-else statements).
    • Fixed bug #72697 (select_colors write out-of-bounds).
    • Fixed bug #72730 (imagegammacorrect allows arbitrary write access).
  • Intl:
    • Fixed bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property).
    • Partially fixed Fixed bug #72506 (idn_to_ascii for UTS #46 incorrect for long domain names).
  • mbstring:
    • Fixed bug #72691 (mb_ereg_search raises a warning if a match zero-width).
    • Fixed bug #72693 (mb_ereg_search increments search position when a match zero-width).
    • Fixed bug #72694 (mb_ereg_search_setpos does not accept a string’s last position).
    • Fixed bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error).
  • Mcrypt:
    • Fixed bug #72782 (Heap Overflow due to integer overflows).
  • Opcache:
    • Fixed bug #72590 (Opcache restart with kill_all_lockers does not work).
  • PCRE:
    • Fixed bug #72688 (preg_match missing group names in matches).
  • PDO_pgsql:
    • Fixed bug #70313 (PDO statement fails to throw exception).
  • Reflection:
    • Fixed bug #72222 (ReflectionClass::export doesn’t handle array constants).
  • SimpleXML:
    • Fixed bug #72588 (Using global var doesn’t work while accessing SimpleXML element).
  • SNMP:
    • Fixed bug #72708 (php_snmp_parse_oid integer overflow in memory allocation).
  • SPL:
    • Fixed bug #55701 (GlobIterator throws LogicException).
    • Fixed bug #72646 (SplFileObject::getCsvControl does not return the escape character).
    • Fixed bug #72684 (AppendIterator segfault with closed generator).
  • SQLite3:
    • Fixed bug #72668 (Spurious warning when exception is thrown in user defined function).
    • Fixed bug #72571 (SQLite3::bindValue, SQLite3::bindParam crash).
    • Implemented FR #72653 (SQLite should allow opening with empty filename).
    • Updated to SQLite3 3.13.0.
  • Standard:
    • Fixed bug #72622 (array_walk + array_replace_recursive create references from nothing).
    • Fixed bug #72152 (base64_decode $strict fails to detect null byte).
    • Fixed bug #72263 (base64_decode skips a character after padding in strict mode).
    • Fixed bug #72264 (base64_decode $strict fails with whitespace between padding).
    • Fixed bug #72330 (CSV fields incorrectly split if escape char followed by UTF chars).
  • Streams:
    • Fixed bug #41021 (Problems with the ftps wrapper).
    • Fixed bug #54431 (opendir() does not work with ftps:// wrapper).
    • Fixed bug #72667 (opendir() with ftp:// attempts to open data stream for non-existent directories).
    • Fixed bug #72771 (ftps:// wrapper is vulnerable to protocol downgrade attack).
  • XMLRPC:
    • Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements).
  • Wddx:
    • Fixed bug #72564 (boolean always deserialized as “true”).
    • Fixed bug #72142 (WDDX Packet Injection Vulnerability in wddx_serialize_value()).
    • Fixed bug #72749 (wddx_deserialize allows illegal memory access) (Stas)
    • Fixed bug #72750 (wddx_deserialize null dereference).
    • Fixed bug #72790 (wddx_deserialize null dereference with invalid xml).
    • Fixed bug #72799 (wddx_deserialize null dereference in php_wddx_pop_element).
  • Zip:
    • Fixed bug #72660 (NULL Pointer dereference in zend_virtual_cwd).

http://www.php.net/ChangeLog-7.php#7.0.10

php 7.0.9 リリース

Version 7.0.9

  • Core:
    • Fixed bug #72508 (strange references after recursive function call and “switch” statement).
    • Fixed bug #72513 (Stack-based buffer overflow vulnerability in virtual_file_ex).
    • Fixed bug #72573 (HTTP_PROXY is improperly trusted by some PHP libraries and applications).
  • bz2:
    • Fixed bug #72613 (Inadequate error handling in bzread()).
  • CLI:
    • Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify router.php).
  • COM:
    • Fixed bug #72498 (variant_date_from_timestamp null dereference).
  • Curl:
    • Fixed bug #72541 (size_t overflow lead to heap corruption).
  • Exif:
    • Fixed bug #72603 (Out of bound read in exif_process_IFD_in_MAKERNOTE).
    • Fixed bug #72618 (NULL Pointer Dereference in exif_process_user_comment).
  • GD:
    • Fixed bug #43475 (Thick styled lines have scrambled patterns).
    • Fixed bug #53640 (XBM images require width to be multiple of 8).
    • Fixed bug #64641 (imagefilledpolygon doesn’t draw horizontal line).
    • Fixed bug #72512 (gdImageTrueColorToPaletteBody allows arbitrary write/read access).
    • Fixed bug #72519 (imagegif/output out-of-bounds access).
    • Fixed bug #72558 (Integer overflow error within _gdContributionsAlloc()).
    • Fixed bug #72482 (Ilegal write/read access caused by gdImageAALine overflow).
    • Fixed bug #72494 (imagecropauto out-of-bounds access).
  • Intl:
    • Fixed bug #72533 (locale_accept_from_http out-of-bounds access).
  • Mbstring:
    • Fixed bug #72405 (mb_ereg_replace – mbc_to_code (oniguruma) – oob read access).
    • Fixed bug #72399 (Use-After-Free in MBString (search_re)).
  • mcrypt:
    • Fixed bug #72551, bug #72552 (Incorrect casting from size_t to int lead to heap overflow in mdecrypt_generic).
  • PDO_pgsql:
    • Fixed bug #72570 (Segmentation fault when binding parameters on a query without placeholders).
  • PCRE:
    • Fixed bug #72476 (Memleak in jit_stack).
    • Fixed bug #72463 (mail fails with invalid argument).
  • Readline:
    • Fixed bug #72538 (readline_redisplay crashes php).
  • Standard:
    • Fixed bug #72505 (readfile() mangles files larger than 2G).
    • Fixed bug #72306 (Heap overflow through proc_open and $env parameter).
  • Session:
    • Fixed bug #72531 (ps_files_cleanup_dir Buffer overflow).
    • Fixed bug #72562 (Use After Free in unserialize() with Unexpected Session Deserialization).
  • SNMP:
    • Fixed bug #72479 (Use After Free Vulnerability in SNMP with GC and unserialize()).
  • Streams:
    • Fixed bug #72439 (Stream socket with remote address leads to a segmentation fault).
  • XMLRPC:
    • Fixed bug #72606 (heap-buffer-overflow (write) simplestring_addn simplestring.c).
  • Zip:
    • Fixed bug #72520 (Stack-based buffer overflow vulnerability in php_stream_zip_opener).

HDDの中身を完全削除するISO「DBAN」

ゴミ箱の中身の削除やHDDのフォーマットだけでは断片データが残ってしまいますよね。
でも機密データとか復元されたくない。でもHDDを物理的に破壊したくない><
そこでHDDのデータを完全削除するディスクイメージ「DBAN」の出番ですよ!

このISOをディスクに焼いてディスクブートさせると、CUIが出てきます。
「autonuke」で自動削除してもいいのですが、特定ドライブ・特定パーティションのみの削除や削除時に扱う暗号方式の選択も可。
https://sourceforge.net/projects/dban/

php 7.0.8 リリース

Version 7.0.8

  • Core:
    • Fixed bug #72218 (If host name cannot be resolved then PHP 7 crashes).
    • Fixed bug #72221 (segfault, past-the-end access).
    • Fixed bug #72268 (Integer Overflow in nl2br()).
    • Fixed bug #72275 (Integer Overflow in json_encode()/json_decode()/ json_utf8_to_utf16()).
    • Fixed bug #72400 (Integer Overflow in addcslashes/addslashes).
    • Fixed bug #72403 (Integer Overflow in Length of String-typed ZVAL).
  • FPM:
    • Fixed bug #72308 (fastcgi_finish_request and logging environment variables).
  • GD:
    • Fixed bug #72298 (pass2_no_dither out-of-bounds access).
    • Fixed bug #72337 (invalid dimensions can lead to crash) (Pierre)
    • Fixed bug #72339 (Integer Overflow in _gd2GetHeader() resulting in heap overflow).
    • Fixed bug #72407 (NULL Pointer Dereference at _gdScaleVert).
  • Intl:
    • Fixed bug #64524 (Add intl.use_exceptions to php.ini-*).
  • mbstring:
    • Fixed bug #72402 (_php_mb_regex_ereg_replace_exec – double free).
  • mcrypt:
    • Fixed bug #72455 (Heap Overflow due to integer overflows).
  • PCRE:
    • Fixed bug #72143 (preg_replace uses int instead of size_t).
  • PDO_pgsql:
    • Fixed bug #71573 (Segfault (core dumped) if paramno beyond bound).
    • Fixed bug #72294 (Segmentation fault/invalid pointer in connection with pgsql_stmt_dtor).
  • Phpdbg:
    • Fixed bug #72284 (phpdbg fatal errors with coverage).
  • Postgres:
    • Fixed bug #72195 (pg_pconnect/pg_connect cause use-after-free).
    • Fixed bug #72197 (pg_lo_create arbitrary read).
  • SPL:
    • Fixed bug #72262 (int/size_t confusion in SplFileObject::fread).
    • Fixed bug #72433 (Use After Free Vulnerability in PHP’s GC algorithm and unserialize).
  • Standard:
    • Fixed bug #72017 (range() with float step produces unexpected result).
    • Fixed bug #72193 (dns_get_record returns array containing elements of type ‘unknown’).
    • Fixed bug #72229 (Wrong reference when serialize/unserialize an object).
    • Fixed bug #72300 (ignore_user_abort(false) has no effect).
  • XML:
    • Fixed bug #72206 (xml_parser_create/xml_parser_free leaks mem).
  • XMLRPC:
    • Fixed bug #72155 (use-after-free caused by get_zval_xmlrpc_type).
  • WDDX:
    • Fixed bug #72340 (Double Free Courruption in wddx_deserialize).
  • Zip:
    • Fixed bug #72258 (ZipArchive converts filenames to unrecoverable form).
    • Fixed bug #72434 (ZipArchive class Use After Free Vulnerability in PHP’s GC algorithm and unserialize).

php 7.0.7 リリース

Version 7.0.7

  • Core:
    • Fixed bug #72162 (use-after-free – error_reporting).
    • Add compiler option to disable special case function calls.
    • Fixed bug #72101 (crash on complex code).
    • Fixed bug #72100 (implode() inserts garbage into resulting string when joins very big integer).
    • Fixed bug #72057 (PHP Hangs when using custom error handler and typehint).
    • Fixed bug #72038 (Function calls with values to a by-ref parameter don’t always throw a notice).
    • Fixed bug #71737 (Memory leak in closure with parameter named $this).
    • Fixed bug #72059 (?? is not allowed on constant expressions).
    • Fixed bug #72159 (Imported Class Overrides Local Class Name).
  • Curl:
    • Fixed bug #68658 (Define CURLE_SSL_CACERT_BADFILE).
  • DBA:
    • Fixed bug #72157 (use-after-free caused by dba_open).
  • GD:
    • Fixed bug #72227 (imagescale out-of-bounds read). (CVE-2013-7456)
  • Intl:
    • Fixed bug #72241 (get_icu_value_internal out-of-bounds read). (CVE-2016-5093)
  • JSON:
    • Fixed bug #72069 (Behavior \JsonSerializable different from json_encode).
  • Mbstring:
    • Fixed bug #72164 (Null Pointer Dereference – mb_ereg_replace).
  • OCI8:
    • Fixed bug #71600 (oci_fetch_all segfaults when selecting more than eight columns).
  • Opcache:
    • Fixed bug #72014 (Including a file with anonymous classes multiple times leads to fatal error).
  • OpenSSL:
    • Fixed bug #72165 (Null pointer dereference – openssl_csr_new).
  • PCNTL:
    • Fixed bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite).
  • POSIX:
    • Fixed bug #72133 (php_posix_group_to_array crashes if gr_passwd is NULL).
  • Postgres:
    • Fixed bug #72028 (pg_query_params(): NULL converts to empty string).
    • Fixed bug #71062 (pg_convert() doesn’t accept ISO 8601 for datatype timestamp).
    • Fixed bug #72151 (mysqli_fetch_object changed behaviour).
  • Reflection:
    • Fixed bug #72174 (ReflectionProperty#getValue() causes __isset call).
  • Session:
    • Fixed bug #71972 (Cyclic references causing session_start(): Failed to decode session object).
  • Sockets:
    • Added socket_export_stream() function for getting a stream compatible resource from a socket resource.
  • SPL:
    • Fixed bug #72051 (The reference in CallbackFilterIterator doesn’t work as expected).
  • SQLite3:
    • Fixed bug #68849 (bindValue is not using the right data type).
  • Standard:
    • Fixed bug #72075 (Referencing socket resources breaks stream_select).
    • Fixed bug #72031 (array_column() against an array of objects discards all values matching null).

ふざけて作ったクイズphp

某大学生とフザケながら組んだクイズのphpソースコード。ターミナル上で動くよ(´^ω^`)

#!/usr/bin/php
 <?php
$put = NULL;
$dataset = array(
    0=>array(
        "question"=>"某世界最強生主の最初のあだ名は?",
        "select"=>array(1=>"ぷるや",2=>"ひつ国ブーメン王子",3=>"フケ栽培マン"),
        "answer"=>1,
    ),
    1=>array(
        "question"=>"このクソソースを組んだのは誰?",
        "select"=>array(1=>"がんだまにあ",2=>"十円玉",3=>"白菜"),
        "answer"=>2,
    ),
    2=>array(
        "question"=>"一番見た目でうるさそうなものを選べ",
        "select"=>array(1=>"淫乱テディベア",2=>"つるぺたツンデレニューハーフ",3=>"はっwかっwたっwのっwしおっっっwwwww"),
        "answer"=>3,
    ),
);
echo "ああ・・・、遂に実行しちゃったのね。\n\n";
for ($i=0;$i<count($dataset);$i++)
{
    echo $dataset[$i]["question"]."\n次の3つから選んでね(´^ω^`)\n\n";
    foreach ($dataset[$i]["select"] as $select_key=>$select_val)
    {
        echo $select_key.":".$select_val."\n";
    }
    echo "\n\n";
    $put = trim(fgets(STDIN));
    if (ctype_digit($put)===FALSE || $put < 1 || $put > 3)
    {
        echo "\nふざけるな、真面目にやれ。\n\n";
        $i-=1;
        continue 1;
    }
    else if ($put==$dataset[$i]["answer"])
    {
        echo "\nおめでた(*´゚д゚`*) \n\n";
    }
    else
    {
        echo "\n残念でした\(^ヮ^)/\n\n";
    }
}
?>