Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
PHP8.3 / PHP8.2 / PHP8.1 / PHP8.0 2022/07/19ãPHP8.2ããã£ã¼ãã£ã¼ããªã¼ãºãã¾ããã è¨èªæ©è½ã«é¢ãããããªæ©è½ã®è¿½å ã»å¤æ´ãç· ãåãããã¨ãããã¨ã§ãã ä»å¾ã¯ãããã°ãç¹°ãè¿ããªããå®æ度ãé«ãã¦ããã2022/11/24ã«PHP8.2.0ããªãªã¼ã¹ãããäºå®ã§ãã ã¨ããããã§PHP8.2ã§å®è£ ãããRFCãè¦ã¦ã¿ã¾ãããã RFC Disjunctive Normal Form Types è³æ25ãå対1ã§åçã é¸è¨æ¨æºå½¢ã§ãã UNIONåã¨äº¤å·®åãåæã«ä½¿ããããã«ãªãã¾ãã æãåååããºã«ã§éã¹ã¾ããã // Aåããããã¯Båãã¤Cåããããã¯int function hoge( A | (B & C) | int $param){}
å ãã¿ @localdisk ããã®è¨äºã§ãã ãã¡ãã§æ¦ãé©åã«èª¬æããã¦ãããã®ã®ï¼æç« ã®ã¿ã§å³ãç¡ãã¦ç´æçã«ææ¡ãã¥ããã®ã§ï¼åå¿è ã«ããã飲ã¿è¾¼ã¾ããããããã«å³ã«æãèµ·ããã¦ã¿ã¾ããã å³ è§£èª¬ illuminate/auth: æå°éã®èªè¨¼èªå¯ã³ã¢ãã¸ã㯠ã³ã¢ã³ã³ãã¼ãã³ã群㮠laravel/framework ã«å«ã¾ãã¦ãããã®ã§ãã Socialite 以å¤ã®ãã¹ã¦ã®ããã±ã¼ã¸ãï¼å®è³ªãã®ã³ã¢ã«ä¾åãã¦ãããã¨ã«ãªãã¾ãã 以ä¸ã®è¨äºã§ãã®ããã±ã¼ã¸ã®è©³ç´°ã«ã¤ãã¦èª¬æãã¦ããã®ã§ï¼ããã§ã¯ç«¯æã£ã¦èª¬æãã¾ãã ä¼çµ±ç Cookie ãã¼ã¹ã®ã»ãã·ã§ã³èªè¨¼ ãã¡ãã§ã解説ãã¦ããï¼ ãCookie ã«èå¥åãè¼ãï¼ããã«å¯¾å¿ããæ å ±ã¯ãµã¼ãå´ã®ãã¡ã¤ã«ã«è¨é²ããã ã¨ããææ³ã«è¿ããã®ã§ãã å®è£ 㯠illuminate/session ã«ããï¼ PHP ãã¤ãã£ãã®ã»
PHP9以éãè´å½çã¨ã©ã¼ã«ãªãã¾ãã 以ä¸ã¯è©²å½ã®RFCãUndefined Variable Error Promotionã®ç´¹ä»ã§ãã æ票æéã¯2022/03/14ãã2022/03/28ã§ãã 2022/03/21æç¹ã§ã¯è³æ30å対6ã®è³æå¤æ°ã§ãããã»ã¼ç¢ºå®ã«å¯æ±ºããã¾ãã Undefined Variable Error Promotion Introduction æªå®ç¾©å¤æ°ã¨ã¯ã使ç¨ããåã«å¤ãã¾ã åæåããã¦ããªãå¤æ°ã®ãã¨ã§ãã æªå®ç¾©å¤æ°ã«ã¢ã¯ã»ã¹ããã¨ãç¾å¨ã¯Warning: Undefined variable $varnameã®è¦åE_WARNINGã表示ããããã®å¤æ°å¤ã¯NULLã§ãããã®ããã«æ±ããã¾ãããå®è¡ãä¸æããããã¨ã¯ããã¾ããã ããããããã¯æå³ããªãæåã§ããå¯è½æ§ãé«ãã§ãããã ãã®æåãå¤æ´ãã¦ä¾å¤ãåºãããã«ã«ã¹ã¿ã ã¨ã©ã¼ãã³ãã©
0 fgets <internal>:-1 1 <main> <internal>:-1 0 fgets <internal>:-1 1 <main> <internal>:-1 0 fgets <internal>:-1 1 <main> <internal>:-1 ... 0 time_nanosleep <internal>:-1 1 PhpProfiler\Lib\Loop\LoopMiddleware\NanoSleepMiddleware::invoke /home/sji/work/php-profiler/src/Lib/Loop/LoopMiddleware/NanoSleepMiddleware.php:33 2 PhpProfiler\Lib\Loop\LoopMiddleware\KeyboardCancelMiddleware::invoke /home/sji/
PHP8.2 / PHP8.1 / PHP8.0 / PHP7.4 2021/11/26ã«ãªãªã¼ã¹ããã¾ãã 2021/07/20ãPHP8.1ããã£ã¼ãã£ã¼ããªã¼ãºãã¾ããã è¨èªæ©è½ã«é¢ãããããªæ©è½ã®è¿½å ã»å¤æ´ãç· ãåãããã¨ãããã¨ã§ãã ä»å¾ã¯ãããã°ãç¹°ãè¿ããªããå®æ度ãé«ãã¦ããã2021/11/25ã«PHP8.1.0ããªãªã¼ã¹ãããäºå®ã§ãã ã¨ããããã§PHP8.1ã§å®è£ ãããRFCãè¦ã¦ã¿ã¾ãããã RFC Fibers è³æ50å対14ã§åçã Fiberã§ãã PHPã§éåæã³ã¼ããæ¸ããããã«ãªãã¾ãã $fiber = new Fiber(function (): void { $value = Fiber::suspend('fiber'); echo "ã¬ã¸ã¥ã¼ã ããã$value: ", $value, "\n"; }); $value = $fiber
PHP Conference Japan 2020 Re:born å ¬å¼ãµã¤ã: https://phpcon.php.gr.jp/2020 å ¬å¼YouTubeãã£ã³ãã«: https://www.youtube.com/user/PHPConferenceJP å ¬å¼ãã¤ãã¿ã¼: https://twitter.com/phpcon å ¬å¼Discord: https://twitter.com/phpcon/status/1337547720806989824?s=20 ããã·ã¥ã¿ã°: #phpcon #phpcon2020 æ¥æ: 2020.12.12 SAT YouTube Live PHP Conference Japan 2020 - Track 1 PHP Conference Japan 2020 - Track 2 PHP Conference Japan 2020 - Tr
$user = null; echo $user->address->country ?? ''; PHPã®ããããã£ã¯å ããnullå®å ¨ãªã®ã§ãåå¨ããªãããããã£ã ãããnullã ãããããªããã£ãåã ããããããªãããããã£ãåãåºãã¾ãã åããªãå ´åã¯E_NOTICEãçºçãã¾ããã??ã使ãã°é»æ®ºã§ãã¾ãã ãããã¡ã½ããã¯ã ãã§ãã echo $user->getAddress()->getCountry() ?? ''; // Fatal error: Call to a member function getAddress() // 1 if (method_exists($user, 'getAddress')) { if (method_exists($user->getAddress(), 'getCountry')) { echo $user->getAddres
ã¯ããã« ãã®è¨äºã¯Qiitaå¤ç¥ã2020ã®ã¤ãã³ãã®1ã¤ããã½ãããã¯ãããéå¬ãã¦ãããããï¼è¨èªï¼ã®ã¿ã使ã£ã¦ãä»â³â³ï¼ã¢ããªï¼ãä½ãã¨ããããã®ãã¼ãã§æ稿ãã¦ãã¾ãã ãããè¯ããé¡ã§ããããã¨ã³ã¸ãã¢å¿æºãã¶ãããããæ¯åã豪è¯ã ããä½ããã¡ãã£ã¨ã¯ã¯ã¯ã¯ããã®ã§åå ããã¦ããã ãã¾ããã ä»åã¯ãShellã§Seleniumãä½ã ~Shellnium~ãã¨ãããé¡ã§ãã£ã¦ããã¾ããä¸è¨ã¯Shellniumã§éãã§ããGIFã§ãã ãã©ã¦ã¶ã®èªåæä½ã®æ¨¡æ§ãiTermã®èæ¯ã¨ãã¦éè³ãããã¨ãã§ãã¾ããæå³ä¸æãããããã§ããã(éæ度ãããã£ã¦ãã¨ãã§ã¯ããã¾ãã) ããããªè¨èªã§Seleniumã¯æ±ãã Seleniumã¯çãã御åç¥ã®éãããã©ã¦ã¶ã®èªåæä½ããããã¼ã«ã§ããã Seleniumã¯WebDriverãä»ãã¦ãã©ã¦ã¶ã®èªåæä½ãè¡ã£ã¦ãããã®ã§ãphp,
ã¯ãã㫠以å pthreads ã§éåæå¦çï¼å³å¯ã«ã¯ä¸¦åå¦çï¼ããã話ãæ¸ãã¾ããã PHPã§è¶ ç°¡åã«ä¸¦åå¦çãããPromiseãä½ã£ã¦Packagistã«å ¬éãã話 PHP Promiseã§è¤æ°ã®ã½ã±ãããåæã«æã PHPã®pthreadsï¼ãã«ãã¹ã¬ããã£ã³ã°ï¼ã§ã½ã±ãããæã ã¨ãè¨äºãæ¸ããã¦ããã ããã®ã§ãããå®ã¯éåæå¦çã®æ¡å¼µã®æåæã§ã Swoole ãããã¾ãã Swooleã¯å ¬å¼ãµã¤ãã«ãæ¸ããã¦ãã¾ãããã¤ãã³ãããªãã³ãªéåæå¦çããããã¨ãå°éã«æ±ã£ã¦ããæ¡å¼µæ©è½ã§ãã Swoole is an high-performance network framework using an event-driven, asynchronous, non-blocking I/O model which makes it scalable and efficient
ã¯ã¬ã¤ã¸ã¼ãª JavaScript ãããããã°ï¼ PHP ã§ãã¤ãããã¯ãªããã³ãã¨ã³ãæ¸ãããï¼ãª livewirePHPJavaScriptLaravellivewire æè¿ã® JavaScript ã¯ã¯ã¬ã¤ã¸ã¼ã ããã ã¢ã¼ãã«ããã¼ãã¹ããã¼ãåºãããã ãã«ã³ã¼ãã¨è¤éæ§ã®å±±ãæã£ã¦ããªãã¨ãããªãããããããªãããªï¼ ãªã¼ã±ã¼ã話ã伺ãã... Livewire ã«æ¨æ¶ã ï¼ ããã«ã¡ã¯ã Livewireï¼ Livewire ã¯ãã¤ãããã¯ãªããã³ãã¨ã³ãã(æåéã) vanilla PHP ã¨åããããç°¡åã«æ¸ãã Laravel ç¨ã®ãã«ã¹ã¿ãã¯ãã¬ã¼ã ã¯ã¼ã¯ã ã èå³ãåºã¦ãããã åããã¾ã¾ã§ã«è¦ããã¨ããªãã¦ããã³ã¼ããè¦ãã ãã§ã¾ããããããã·ã¥ãã¼ã±ã«ãã¤ãã¦ããé£ã³è¾¼ããã ...æµ®ãã¦ã! è¨ããããã¨ã¯ãããã¾ãããã¢ã¼ãã«ã®ãããªã¡ãã£ã¨ããåããä»ãã
å··ã§ã¯ãå°ãåããã¢ãã£ããã°ã WordPress ã§ä½ãã®ãæµè¡ã£ã¦ããããã§ããã主㫠PHP éçºè ï¼ãµã¼ãã¼ç®¡çè ã®è¦³ç¹ãããWordPress ã®ãã¡ã ã¨æãã¨ããããæãã¾ã¾ã«æ¸ãã¦ã¿ã¾ããã WordPress ããã£ã¹ãã¤ããã¯ããã¾ããã®ã§ã注æåèµ·ï¼è§£æ±ºæ³ï¼ãã¨ã ï¼ 4ï¼1ï¼5 ãããã®æè¦ã§ã覧ããã ããã°å¹¸ãã§ãã â ãWordPressãWordPressã®ãããã¤ã¤ 1.è¨è¨ãå¤ããã å æ¥æ¸ããè¨äºã§ãæ°ã«ãªã£ã¦ admin-ajax.php ã®ã³ã¼ããçºãã¦ã¿ã¾ããããOh... ããã¯é ·ãâ¦ã require_once ãé£å¼ãããglobal 空éã« define() ã¨ã³ã³ãã£ã°ç¨ã®é åãå ¥ãä¹±ãã$_GET $_POST $_REQUEST ãèãè¸ãããã¡ã¤ã«ã¯ã¯ã©ã¹ã©ãããé¢æ°ã«ãããªã£ã¦ããªãâ¦200 è¡ã«æºããªãã³ã¼ãã¯ãã¿ã®å®åº«ã§ã1
社å åãã®è¬æ¼ã®ããã«ä½ã£ãã¹ã©ã¤ãã§ãããããããGoogle ãã¬ã¼ã³ãã¼ã·ã§ã³ã«ããã¾ã§ããªãã£ãããç¹æ®µç§å¯ã®æ å ±ããªãã£ãã®ã§ãQiitaã¹ã©ã¤ãã®æ¹ã«ä½ãã¾ãã å¤åã¡ããã¡ãã追è¨ãã¾ã 対象 ã¾ã ã³ã³ããéçºãã¦ããªã人 ã³ã³ããéçºããã¾ããããªã人 æ¢åããã¸ã§ã¯ããã³ã³ããåããã人 ãåæ¸ã ã³ã³ããã®æ¦å¿µã®ãããã ã³ã³ããã§ã®éçº docker ã®ãããã¯ã¼ã¯ docker-compose ã使ã£ãéçºã®å¹çå ã³ã³ããã®æ¦å¿µã®ãããã VM 㨠ã³ã³ãã ã³ã³ããã®ç®ç ããåæã¨ãªãç¶æ ã®ãã¨ã§ãç¹å®ã®ã³ãã³ã(ã®ã¿)ãå®è¡ããã¨ãã®åä½ãã·ãã¥ã¬ã¼ãããã㨠ãµã¼ãã®ä¸ã®ããã»ã¹ $ ps -A PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd 3 ? 00:00:04 ksoftirqd/0
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}