$:.unshift(File.dirname(__FILE__))
require 'php_serialization/parser'

module PhpSerialization
  def self.unserialize(str)
    Parser.new.parse(str)
  end
end
$:.unshift(File.dirname(__FILE__))
require 'php_serialization/parser'

module PhpSerialization
  class << self
    def unserialize(str)
      Parser.new.parse(str)
    end
    
    alias :load :unserialize
    alias :restore :unserialize
  end
end
Rename method php_unserialize to unserialize and create two alias to it: load and restore
Rename method php_unserialize to unserialize and create two alias to it: load and restore
