Skip to content

Commit

Permalink
Added PHP7 prototypes to reduce build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Apr 14, 2016
1 parent 5fb4a9c commit e725ade
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"optimizer-dirs": [
"optimizers"
],
"prototype-dir": {
"php7": "prototypes/php7"
},
"constants-sources": [
"ext/phalcon/mvc/model/query/scanner.h",
"ext/phalcon/annotations/scanner.h",
Expand Down
12 changes: 12 additions & 0 deletions prototypes/php7/php7.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* PHP 7 prototypes
*/

if (!function_exists('random_bytes')) {
function random_bytes($length) {}
}

if (!function_exists('random_int')) {
function random_int($min, $max) {}
}

0 comments on commit e725ade

Please sign in to comment.