CodeIgniter Forums

Full Version: PHP 7.2 released
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
PHP 7.2.6 Was released today.
now fonts issue not face into codeigniter last version . bcoz this problem has been solved into latest version
For font issues try this added to your .htaccess file.

Code:
    # Add Font Types
    AddType application/vnd.ms-fontobject .eot
    AddType font/truetype .ttf
    AddType font/opentype .otf
    AddType font/opentype .woff
    AddType font/opentype .woff2
    AddType image/svg+xml .svg .svgz

    <FilesMatch ".(eot|ttf|otf|woff|woff2|svg|svgz)">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
No issues with CI3.1.6 so far. We Upgraded our XAMPP install to use 7.2 last night.
(12-01-2017, 08:35 AM)Narf Wrote: [ -> ]PHP 7.2 release announcement

In addition to the new features and other general improvements, it's even faster than 7.0 and 7.1! Go try it, and even upgrade to it if you can. Smile

Of course, if you encounter any CodeIgniter bugs related to it, you should also report them to us. So far there's only one known issue (an E_DEPRECATION notice in validate_email), which will be fixed in our next release.

Sessions not working between controllers after redirection . . . . Plz help  Huh
(07-31-2019, 03:41 AM)nitin.d12 Wrote: [ -> ]
(12-01-2017, 08:35 AM)Narf Wrote: [ -> ]PHP 7.2 release announcement

In addition to the new features and other general improvements, it's even faster than 7.0 and 7.1! Go try it, and even upgrade to it if you can. Smile

Of course, if you encounter any CodeIgniter bugs related to it, you should also report them to us. 

I am a great believer in compiled languages because sloppy code prevents a successful compile. Google's Golang compiler is so strict it will not even compile if there are functions or variables declared and not used!!!

PHP was initially a very sloppy language and is now changing. To take fully advantage of the new features it is essential to use the new features which will reduce processing time. If only by a little bit Smile

It took me a couple of hours to create a PHP file to iterate through the ./system directory, add the strict declaration and remove all the errors and warnings.
 
I think this should be fixed now rather than later. Once done any additional scripting will fail fast and make debugging far easier.

Also best to declare function type parameters and return values:
PHP Code:
<?php 
declare(strict_types=1); // FILE WIDE declaration, NOT inherited with include/rquire
 
//==================================
Public function test
(
  object $conn  =  NULL,
  string $host  'localhost',
  string $user  'joe-blogs',
  string $pass  '123456',
  string $dbase 'myDataBase',
  string $table 'myTable'
)
:
bool // returned type validation
{
  $result FALSE;

  //...
  //...
  //...

  return $result;

(12-01-2017, 10:51 AM)Wouter60 Wrote: [ -> ]No further problems running CI 3.1.6 under PHP 7 or higher?
Further problems???? I am not getting you que can you please explain little more, What do you want to ask?
Pages: 1 2 3 4