Oh no! Where's the JavaScript?Your Web browser does not have JavaScript enabled or does not support JavaScript.
Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Welcome to Your PHPFusion Profile

Get started by adding your profile cover image. It’s the first thing people will see, so let it be your masterpiece showcase!

The PHP 8, is a new major PHP version and will be expected to be released on [url="https://wiki.php.net/todo/php80"]December 3,2020.[/url] It is currently in development still, and things are much likely to change a lot still in the following months to come.
In order to avoid your code breaking, we've compiled a list of enhancements the PHP developers did, and what will be deprecated in before the 7 versions go obsolete.
The good news, during Earth keep rotating and people are at the liberty of making such shift beyond our control and breaking our current codes, they also managed to come up with the new features
such as the JIT compiler, union types and more.
So lets get going with the good news first.
What is JIT compiler?
A JIT, short abbreviation for Just in Time compiler is a performance. We will not go into detail here, but you can read them up if you want to know and what is going on there.
Our summary is, objects and classes have been optimized for lesser garbage collection and it can improve your site speed by at least a whopping 53%, but it is still now
unsure how PHP 8 will impact the speed of web request headers yet, but we are sure someone will start benchmarking them after this.
PHPFusion has been always lightweight fast when it comes to rendering. According to our latest test carried out by RobiNNN using devilbox docker container the following were carried out:
Test score benchmark running on:
PHPFusion 9.0.5x with all core infusions installed, Default Magazine theme.

New fdiv() function
The new fdiv() function does something similar as the fmod() and intdiv() functions, which allows for division by 0.
Instead of errors you'll get ```INF```, ```-INF``` or ```NAN```, depending on the case.
Ternary Statement just got Cleaner.[big]
Now, this is what is we have been doing.

PHP 8 will allow you to simplify all checking whether a key is in an array by introducing the new coaelescing operator, "?" symbol.
Returning a value after checking a key is in an array definitely will come very handy for all of us. It's also a much cleaner approach.
[big]New Invoke Method in Class.

By adding the invoke method within our class, we can use an instance of it as if it were a function.
You can now define Event Listeners whenever using a class which previously unavailable without calling a particular method such as php7_print.
New Traits
Traits are replacements to same methods within different classes, or what-i-usually-call a utility class. Let me explain it better. There are often times where
you face a situation where you need to run the same piece of code within several classes. In the following example, I'll be doing 2 classes, one which I use for
the directory page, and one for the home page. The similarity here is that I have an item which requires to run a format function which must be identical.

There are ways that we can do this without duplicating the format function in both classes such as extending the class with another class or create a non object oriented function,
but we're not going to examine them here but to show what PHP 8 can do.
To continue with PHP 8, traits works as such ways that the format method can be grouped and shared between both classes.

Notice that in using trait, the method remains as private methods as oppose to if you are using a non object oriented method or extending a class which such callables properties must be public.
Access array within an array without need to extract them through their key and position.
Assume we have a group of users.

Extending try catch with finally statement
If a method or function throws an exception, you might want to extract the error, but when an exception happens, you might want to carry out a task regardless of the execution flow that has been followed.

But in PHP 8, you can also do this in no time by using the "arrow => functions".

Code

$cube = array_map(fn($n) => $n * $n * $n, array(1, 2, 3, 4, 5));

Invoke methods and functions previously only by using a Reflection class. A reflection class is a common utility function that allows us to set objects and methods without actually running it in your script.
A way to explain it is as such:

And as such, without replicating your code, you can run any class/method you want with your parameter without actually calling the class.
Imagine this application in our display controller. Here we are not calling any class, any method but by depending on the situation given, to reflect the method.
As such, there are nothing to debug at least on this function itself if something is wrong. We save 1 file less to debug, and more into automating stuff.

The second reason we use such method invocation is for dynamic variety capability of the PSR-4 loaders that does not require us to include dependencies files and thus saves a heck lot of time managing file requires and method exists checks.
But if you would want to include every single file in the entire project into the very same page, that is another theory we can discuss later on.
So looking at the above code, how does PHP 8 one looks like?
First, we have our class like so:

I know that some members have a problem with receiving emails from this server.
I have taken some time today to come up with a simple email testing service for those who wants to confirm cause of issues.
Please check out the service tool here: https://www.php-fusion.co.uk/email.php
If there are any issues, please reply to this thread.
Thank you.

We have several members that was having problem creating new thread on this site. This issue should be resolved now.
The issue was caused by hidden input fields within the poll form that requires to be filled in, even without the intent to start a poll.
I have removed the forum poll form from the new thread form to fix this issue.
If you want to create a poll, please use the create a poll button after the thread has been created, inside the thread view.
Thank you.