4 Commits
4 changed files with 9 additions and 3 deletions

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
# Changelog # Changelog
## 1.3.2
- fixed dynamic method call crash on PHP 7
- fixed issue with slashes in generated release archives
## 1.3.1 ## 1.3.1
- fixed crash on event stop without matching start - fixed crash on event stop without matching start
+2 -1
View File
@@ -144,7 +144,8 @@ class RoboFile extends \Robo\Tasks {
/** @var \Symfony\Component\Finder\SplFileInfo $file */ /** @var \Symfony\Component\Finder\SplFileInfo $file */
foreach ( $finder as $file ) { foreach ( $finder as $file ) {
$zipArchive->addFile( $file->getRealPath(), 'laps/' . $file->getRelativePathname() ); $relativePathname = str_replace( '\\', '/', $file->getRelativePathname() );
$zipArchive->addFile( $file->getRealPath(), 'laps/' . $relativePathname );
} }
if ( ! $zipArchive->status === ZIPARCHIVE::ER_OK ) { if ( ! $zipArchive->status === ZIPARCHIVE::ER_OK ) {
+1 -1
View File
@@ -4,7 +4,7 @@ Plugin Name: Laps
Plugin URI: https://github.com/Rarst/laps Plugin URI: https://github.com/Rarst/laps
Description: Light WordPress profiler. Description: Light WordPress profiler.
Author: Andrey "Rarst" Savchenko Author: Andrey "Rarst" Savchenko
Version: 1.3 Version: 1.3.2
Author URI: http://www.rarst.net/ Author URI: http://www.rarst.net/
Text Domain: laps Text Domain: laps
Domain Path: /lang Domain Path: /lang
+1 -1
View File
@@ -106,7 +106,7 @@ class Laps {
return $input; return $input;
} }
self::$stopwatch->$event['action']( $event['event'], $event['category'] ); self::$stopwatch->{$event['action']}( $event['event'], $event['category'] );
return $input; return $input;
} }