Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
おさらい!PHP8で廃止される機能
Search
sorch
June 30, 2020
Programming
1
460
おさらい!PHP8で廃止される機能
レガシーシステムに息を潜んでいるかも?3機能をみていきます。
sorch
June 30, 2020
Tweet
Share
More Decks by sorch
See All by sorch
他言語と比較して今こそ理解しよう! 目指せ、列挙型マスター!
soachr
0
210
アカウント発行システムをDDDでリファクタリングしたら 幸せになりそうな予感がした
soachr
1
270
元Javaエンジニアが怖いと思うPHPの仕様
soachr
0
210
Other Decks in Programming
See All in Programming
Building a Smaller App Binary
kateinoigakukun
2
190
WinUI 3デモ - "CommunityToolkit.Mvvm"NuGetパッケージ編
andrewkeepcoding
0
130
Ruby製社内ツールのGo移行
bgpat
2
260
チームでモデリングを育てるうえで 考えたこと・気づいたこと / Cultivating Modeling in Teams: Thoughts and Insights
mackey0225
5
1.7k
イベントストーミングによるオブジェクトモデリング・オブジェクト指向プログラミングの適用・開発プロセスの変遷・アーキテクチャの変革 / Object modeling with Event Storming.
nrslib
12
2.3k
Enhancing Applications with Accessibility API
kishikawakatsumi
3
820
Deep Dive 大規模システムアーキテクチャ/開発組織エンジニアリング / Deep Dive Large-Scale System Architecture, Development Organization Engineering
nrslib
15
2.9k
Kotlinを用いたDSL的な設計手法と使用上の注意
kohii00
3
530
Laravel OpenAPIによる"辛くない"スキーマ駆動開発
kentaroutakeda
2
2.1k
Creating Retro-Style Photos Using Swift
ski
1
340
「コンパイル時のユニットテスト」導入するとユニットテストを 書かなくてよくなるのか?
tomohisa
9
2.1k
PHPでOfficeファイルを取り扱う! PHP Officeライブラリを プロダクトに組み込んだ話
hirobe1999
0
830
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Building Applications with DynamoDB
mza
88
5.6k
What's in a price? How to price your products and services
michaelherold
236
11k
Building Effective Engineering Teams - LeadDev
addyosmani
25
1.8k
Into the Great Unknown - MozCon
thekraken
10
830
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
12
1.4k
The Invisible Customer
myddelton
114
12k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Gamification - CAS2011
davidbonilla
76
4.5k
What's new in Ruby 2.0
geeforr
335
31k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
Transcript
おさらい!PHP8で廃止される機能 そーく
@soachr(そーく)
PHP8で廃止される機能 3つを厳選
mb_strrpos() with encoding as 3rd argument 注意: encoding パラメータは、 PHP
5.2.0 以降は三番目のパラメータで はなく四番目のパラメータに変わりました。 過去との互換性を保つため に encoding を三番目の引数で指定することもできますが、これは推奨 されません。 将来は削除される予定です。 https://www.php.net/manual/ja/function.mb-strrpos.php
implode() parameter order mix 注意: implode()は、歴史的な理由により、引数をどちら の順番でも受けつけること が可能です。しかし、 explode() との統一性の観点からは、
ドキュメントに記 述された引数の順番を使用しないことは推奨されません。 https://www.php.net/manual/ja/function.implode.ph p ・今後は以下の引数順のみ OKになります implode ( string $glue , array $pieces ) : string implode ( array $pieces ) : string
$errcontext argument of error handler エラーハンドラのコールバック関数のシグニチャに指定できる$errcontextが廃止されま す。 この変数にはエラーが起きたときのローカル変数の値をすべて保持しています。 handler (
int $errno , string $errstr [, string $errfile [, int $errline [, array $errcontext ]]] ) : bool ・PHP7系でWarningログが出力されていないので、いきなり機能がつかえなくなるようです。
おわりに • は生きている!淘汰される機能を適切にお見送りしましょう。
ご清聴ありがとうございました #PHPTechCafe
https://qiita.com/soachr/items/b0b6a9644 15a020a167b にまとめた版