billw2 / pikrellcam

Raspberry Pi motion vector detection program with OSD web interface.
GNU General Public License v3.0
261 stars 70 forks source link

Replace deprecated use of `create_function` #42

Closed barrywoolgar closed 5 years ago

barrywoolgar commented 5 years ago

As reported by @Egregius in #41 create_function is deprecated since PHP 7.2. This PR replaces it with an anonymous function, which are supported since PHP 5.3, so should still be backwards compatible with older Raspberry Pis running Jessie.

billw2 commented 5 years ago

Thanks, I've merged your patch.

Bill

On Sun, 21 Apr 2019 05:57:49 -0700 Barry Woolgar notifications@github.com wrote:

As reported by @Egregius in #41 create_function is deprecated since PHP 7.2. This PR replaces it with an anonymous function, which are supported since PHP 5.3, so should still be backwards compatible with older Raspberry Pis running Jessie. You can view, comment on, or merge this pull request online at:

https://github.com/billw2/pikrellcam/pull/42

-- Commit Summary --

  • Replace deprecated use of create_function

-- File Changes --

M www/media-archive.php (4)

-- Patch Links --

https://github.com/billw2/pikrellcam/pull/42.patch https://github.com/billw2/pikrellcam/pull/42.diff

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/billw2/pikrellcam/pull/42