$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
おさらい!PHP8で廃止される機能
Search
sorch
June 30, 2020
Programming
1
640
おさらい!PHP8で廃止される機能
レガシーシステムに息を潜んでいるかも?3機能をみていきます。
sorch
June 30, 2020
Tweet
Share
More Decks by sorch
See All by sorch
他言語と比較して今こそ理解しよう! 目指せ、列挙型マスター!
soachr
0
260
アカウント発行システムをDDDでリファクタリングしたら 幸せになりそうな予感がした
soachr
1
300
元Javaエンジニアが怖いと思うPHPの仕様
soachr
0
270
Other Decks in Programming
See All in Programming
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
290
関数実行の裏側では何が起きているのか?
minop1205
1
410
AI時代もSEOを頑張っている話
shirahama_x
0
220
S3 VectorsとStrands Agentsを利用したAgentic RAGシステムの構築
tosuri13
4
260
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.3k
社内オペレーション改善のためのTypeScript / TSKaigi Hokuriku 2025
dachi023
1
420
ローターアクトEクラブ アメリカンナイト:川端 柚菜 氏(Japan O.K. ローターアクトEクラブ 会長):2720 Japan O.K. ロータリーEクラブ2025年12月1日卓話
2720japanoke
0
400
関数の挙動書き換える
takatofukui
4
770
バックエンドエンジニアによる Amebaブログ K8s 基盤への CronJobの導入・運用経験
sunabig
0
130
Why Kotlin? 電子カルテを Kotlin で開発する理由 / Why Kotlin? at Henry
agatan
2
6.1k
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
1
210
All(?) About Point Sets
hole
0
260
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Code Reviewing Like a Champion
maltzj
527
40k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Practical Orchestrator
shlominoach
190
11k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Facilitating Awesome Meetings
lara
57
6.6k
We Have a Design System, Now What?
morganepeng
54
7.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
RailsConf 2023
tenderlove
30
1.3k
Automating Front-end Workflow
addyosmani
1371
200k
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 にまとめた版