- Output for git.master, git.master_jit, rfc.property-hooks
- $file1 = $entity->getFormPhoto(); if ($file1) { $filename1 = uniqid() . '.' . $file1->getClientOriginalExtension(); $this->filesystem->write($filename1, file_get_contents($file1->getPathname())); $this->filesystem->delete(substr($entity->getPhoto(), strrpos($entity->getPhoto(), '/'))); $entity->setPhoto('/imgs/upload/service/' . $filename1); } $file2 = $entity->getFormIcon(); if ($file2) { $filename2 = uniqid() . '.' . $file2->getClientOriginalExtension(); $this->filesystem->write($filename2, file_get_contents($file2->getPathname())); $this->filesystem->delete(substr($entity->getIcon(), strrpos($entity->getIcon(), '/'))); $entity->setIcon('/imgs/upload/service/' . $filename2); } $file3 = $entity->getFormTopPhoto(); if ($file3) { $filename3 = uniqid() . '.' . $file3->getClientOriginalExtension(); $this->filesystem->write($filename3, file_get_contents($file3->getPathname())); $this->filesystem->delete(substr($entity->getTopPhoto(), strrpos($entity->getTopPhoto(), '/'))); $entity->setTopPhoto('/imgs/upload/service/' . $filename3); } $file4 = $entity->getFormDescriptionPhoto(); if ($file4) { $filename4 = uniqid() . '.' . $file4->getClientOriginalExtension(); $this->filesystem->write($filename4, file_get_contents($file4->getPathname())); $this->filesystem->delete(substr($entity->getDescriptionPhoto(), strrpos($entity->getDescriptionPhoto(), '/'))); $entity->setDescriptionPhoto('/imgs/upload/service/' . $filename4); } $file5 = $entity->getFormBenefitPhoto(); if ($file5) { $filename5 = uniqid() . '.' . $file5->getClientOriginalExtension(); $this->filesystem->write($filename5, file_get_contents($file5->getPathname())); $this->filesystem->delete(substr($entity->getBenefitPhoto(), strrpos($entity->getBenefitPhoto(), '/'))); $entity->setBenefitPhoto('/imgs/upload/service/' . $filename5); } $file6 = $entity->getFormIndicationPhoto(); if ($file6) { $filename6 = uniqid() . '.' . $file6->getClientOriginalExtension(); $this->filesystem->write($filename6, file_get_contents($file6->getPathname())); $this->filesystem->delete(substr($entity->getIndicationPhoto(), strrpos($entity->getIndicationPhoto(), '/'))); $entity->setIndicationPhoto('/imgs/upload/service/' . $filename6); } $file7 = $entity->getFormPreparationPhoto(); if ($file7) { $filename7 = uniqid() . '.' . $file7->getClientOriginalExtension(); $this->filesystem->write($filename7, file_get_contents($file7->getPathname())); $this->filesystem->delete(substr($entity->getPreparationPhoto(), strrpos($entity->getPreparationPhoto(), '/'))); $entity->setPreparationPhoto('/imgs/upload/service/' . $filename7); }
This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches
Archived branches
Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
- 2020-03-21 RFC: Is_Literal - declined
- 2020-12-04 Enumerations - included in PHP 8.1
- 2018-06-15 Typed Properties v2 - implemented in PHP 7.4
- 2016-08-12 Object typehint - included in PHP 7.2
- 2016-08-14 Arrow functions - withdrawn
- 2016-05-29 array_change_keys() - withdrawn
- 2016-04-19 Lexical scope support for anonymous classes - suspended
- 2016-04-17 Functional Interfaces - declined
- 2016-03-16 Typed Properties - superseded in favor of Typed Properties 2.0
- 2015-08-27 Callable Prototypes - declined
- 2015-05-01 Short Closures - declined / withdrawn in favor of Arrow Functions
- 2015-02-18 Scalar type hints v5 - included in PHP 7
- 2015-02-14 Union Types - declined
- 2013-09-22 Anonymous classes - included in PHP 7