Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP 5.3.x のアプリを PHP 7.0.x で動かすためにした n 個のこと

PHP 5.3.x のアプリを PHP 7.0.x で動かすためにした n 個のこと

7/2 (Sat) YAPC::Asia Hachioji in Shinagawa での発表資料です

Yoshihide Taniguchi

July 02, 2016
Tweet

More Decks by Yoshihide Taniguchi

Other Decks in Programming

Transcript

  1. :PTIJIJEF5BOJHVDIJ !SBWFMMM

    (.01&1"#0JOD
    OUIJOHTUPVQHSBEF
    1)1YBQQMJDBUJPO
    UP1)1YBQQMJDBUJPO

    View full-size slide

  2. ࠓ೔࿩͢͜ͱ
    w1)1Ͱຊ൪Քಇ͍ͯ͠Δ8FCΞϓϦέʔγϣϯΛ
    w1)1Ͱಈ͔ͨ͠·Ͱͷه࿥ʹ͍ͭͯ࿩͠·͢

    View full-size slide

  3. 5BOJHVDIJ:PTIJIJEF!SBWFMMM

    View full-size slide

  4. Ϡύνʔ΍ͬͯͧ͘ʂʂʂʂ

    View full-size slide

  5. Χϥʔϛʔγϣοϓ

    View full-size slide

  6. ͓͜ͱΘΓ
    ˞ݱঢ়ϩʔΧϧ؀ڥͰ͔͠ಈ͔͍ͯ͠·ͤΜ
    ˞ΞοϓάϨʔυલͷػೳશ͕ͯಈ͘ͱ͜Ζ·Ͱ͸௚͍ͤͯ·ͤΜ

    View full-size slide

  7. ͳͥΞοϓάϨʔυʁͳͥʁ
    w&0-ͳόʔδϣϯΛ୤͢ΔͨΊͷ஌ݟΛಘ͔͔ͨͬͨΒ
    ‣ औΓ૊ΊΔࣾ಺Ϧιʔε͕ແ͔ͬͨ
    ‣ ΍͍͚ͬͯΔงғؾʹͳ͖ͬͯͨ΍Δͧʂʂʂʂʂ
    wܥ͔ΒεςοϓͰܥʹΞοϓάϨʔυͰ͖Δͷ͔ؾʹͳ͔ͬͨΒ
    ‣ ܥ΁ͷΞοϓάϨʔυΛߟ͍͑ͯͨ
    ‣ ޙํޓ׵͕खް͍ͱ͸ฉ͚͘Ͳɺ࣮ࡍͷͱ͜Ζ͸ʜʁ
    wϠύνʔͷωλΛ࡞Γ͔͔ͨͬͨΒ

    View full-size slide

  8. ΍͍ͬͯͧ͘͏

    View full-size slide

  9. ΞοϓάϨʔυͨ͠ΞϓϦέʔγϣϯ
    wސ٬؅ཧΞϓϦέʔγϣϯ
    ‣ ଞͷϩʔϧΑΓ΋ൺֱతن໛͕খ͍͞
    ‣ ϩʔϧͷؔ܎ੑ͕࠷΋ૄͩͬͨ
    ‣ ຊ൪౤ೖ͠΍ͦ͢͏
    w ελοϑ༻
    w ஈ֊తʹػೳमਖ਼Ͱ͖Δ

    View full-size slide

  10. 1)1ΞϓϦέʔγϣϯͷߏ੒
    w$FOU04Y
    w"QBDIF NPE@QIQ
    Y
    w1)1
    w.Z42- NFNDBDIFE

    View full-size slide

  11. γϯλΫεमਖ਼

    View full-size slide

  12. γϯλΫεमਖ਼
    wQIQM͕௨ΔΑ͏ʹͳΔ·ͰશϑΝΠϧΛ௚͢
    wQIQJOJ͸σϑΥϧτͷঢ়ଶ
    wࠩ෼͸ϑΝΠϧ ߦ͘Β͍ʹͳΓ·ͨ͠

    View full-size slide

  13. ໰୊ͷ͋ͬͨγϯλΫε
    w
    wγϣʔτΦʔϓϯλά
    w.7$શ෦ೖΓQIQϑΝΠϧ͕݁ߏ਺͋ΓɺͦΕΒͰ࢖ΘΕ͍ͯͨ
    wTIPSU@PQFO@UBH0OͰճආ͸Ͱ͖Δ΋ͷͷ

    ۃྗσϑΥϧτͷઃఆʹد͔ͤͨͬͨͷͰमਖ਼

    View full-size slide

  14. ໰୊ͷ͋ͬͨγϯλΫε
    wOFX$MBTT
    wOFXͷࢀর୅ೖ
    w1)1͔ΒOFX͸ࢀরΛฦ͢Α͏ʹͳͬͨ

    ʢ㲈ˢ͸1)1࣌୅ͷίʔυʣ
    w1)1͔Β͸4ZOUBY&SSPSʁ

    View full-size slide

  15. ݕূ؀ڥߏங

    View full-size slide

  16. 1)1༻ݕূ؀ڥߏ੒
    w$FOU04
    wOHJOY
    w1)1
    w.Z42- NFNDBDIFE

    View full-size slide

  17. ݕূ؀ڥߏங
    wWBHSBOUJUBNBFTFSWFSTQFD
    wIUUQTHJUIVCDPNSBWFMMMQIQ@QMBZ@HSPVOE
    wϛυϧ΢ΣΞ΍ݴޠͷઃఆΛࢼߦࡨޡ͢ΔͳΒ

    7.΍ϓϩϏδϣχϯά͸ඞਢ
    wͪΌΜͱݎ͘࡞Ε͹ຊ൪౤ೖ࣌ʹ΋׆༻Ͱ͖Δ
    w ݹ͍ΞϓϦέʔγϣϯͰ͸ԟʑʹͯ͠Πϯϑϥίʔυ΋ݹ͘ͳͬͯΔ
    w ΞϓϦέʔγϣϯͱҰॹʹ࡮৽͢Δͷ͕ྑ͍ͷͰ͸ʁ

    View full-size slide

  18. ΞϓϦέʔγϣϯͷ͚ͬΔͧʂ

    View full-size slide

  19. ΢ΦΦʙʙʙ

    View full-size slide

  20. wಈ͔ͳ͍
    w1)1ͷNFNDBDIFΫϥΠΞϯτ͕ਖ਼͘͠ೖͬͯͳ͔ͬͨ
    w(JU)VCϦϙδτϦͷQIQϒϥϯνΛ࢖͏ͱྑ͍ͱฉ͘
    wQIQNFNDBDIFEEFWQIQNFNDBDIFE
    ‎ਖ਼͘͠ೖͬͨ΋ͷͷଞͷՕॴʹ໰୊͕͋ͬͨ
    wҰ୴TFTTJPOTBWF@IBOEMFSpMFʹʜ
    ૉ๿ʹΞϓϦέʔγϣϯ৐ͤͯಈ͔ͯ͠ΈΔ

    View full-size slide

  21. wϩάΠϯͯ͠σʔλΛݕࡧ͢Δఔ౓͸ී௨ʹಈ͍ͨ
    w໰୊΋ͨ͘͞Μ
    wจࣈԽ͚ɺද่ࣔΕʜ
    ๏ޙํޓ׵ੑߴ͍ʂʂ
    w 1)1࣌୅ͷɺ͔͠΋Ұ෦ͷγϯλΫεҎ֎௚ͯ͠ͳ͍
    w ܥʹͰ͖ΔͳΒ੎͍Ͱܥʹͯ͠͠·ͬͯ΋͍͍͔΋͠Εͳ͍
    ಈ͍ͨ

    View full-size slide

  22. wػೳશମΛಈ͘Α͏ʹ͢Δ
    wϕϯνϚʔΫɺϓϩϑΝΠϦϯά
    wόʔδϣϯΞοϓʹΑΔӨڹ఺Λಛఆ͍ͨ͠
    wޙʑฐࣾͷςοΫϒϩάͰʜ
    wຊ൪౤ೖ
    wଞϩʔϧ΁ͷల։
    ల๬

    View full-size slide

  23. w1)1Ͱಈ͍͍ͯͨΞϓϦέʔγϣϯΛ

    1)1Ͱಈ͔ͯ͠Έͨ
    w1)1ɺޙํޓ׵ੑߴ͍
    wʢ౰વͳ͕ΒʣҟͳΔϝδϟʔόʔδϣϯ΁ͷΞοϓάϨʔυͰ͸

    ϛυϧ΢ΣΞϨϕϧͰͷ໰୊͕ى͖Δ
    wOݸͨ͘͞Μ
    wΞοϓάϨʔυಓ͸·ͩ·ͩଓ͘ʜ
    ·ͱΊ

    View full-size slide

  24. ੵۃืूΤϯδχΞੵۃืूΤϯδχΞੵۃืू
    ΤϯδχΞੵۃืूΤϯδχΞੵۃืूΤϯδχΞ
    ੵۃืूΤϯδχΞੵۃืूΤϯδχΞੵۃืू
    ΤϯδχΞੵۃืूΤϯδχΞੵۃืूΤϯδχΞ
    ੵۃืूΤϯδχΞੵۃืूΤϯδχΞੵۃืू
    ΤϯδχΞੵۃืूΤϯδχΞੵۃืूΤϯδχΞ
    ੵۃืूΤϯδχΞੵۃืूΤϯδχΞੵۃืू
    ΤϯδχΞੵۃืूΤϯδχΞੵۃืूΤϯδχΞ
    ੵۃืूΤϯδχΞੵۃืूΤϯδχΞੵۃืू
    https://pepabo.com/recruit/

    View full-size slide

  25. w ਫ

    wौ୩ηϧϦΞϯλϫʔ
    w౳ఏڙ༧ఆ
    w·ͯଓใʂʂʂ
    1)1#-5ΛϖύϘओ࠵Ͱ΍Γ·͢ʂʂʂʂʂ

    View full-size slide