Changeset 1619

Show
Ignore:
Timestamp:
08/24/05 07:14:17
Author:
miyagawa
Message:

more doc fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PHP-Session/trunk/Changes

    r1589 r1619  
    11Revision history for Perl extension PHP::Session 
     2 
     30.25  Tue Aug 23 22:13:33 UTC 2005 
     4        - Documentation improvement 
     5          http://www.perlmonks.org/?node_id=429647 
     6 
     70.24  Thu Jul  6 20:21:24 PDT 2005 
     8        - Addded 'R' and 'r' decoding (reference count?) 
     9          (Thanks to Carl Stehle) 
    210 
    3110.23  Thu Apr 14 10:28:06 JST 2005 
  • PHP-Session/trunk/lib/PHP/Session.pm

    r1589 r1619  
    33use strict; 
    44use vars qw($VERSION); 
    5 $VERSION = 0.23
     5$VERSION = 0.25
    66 
    77use vars qw(%SerialImpl); 
     
    230230=back 
    231231 
     232=head1 EXAMPLE 
     233 
     234  use strict; 
     235  use PHP::Session; 
     236  use CGI::Lite; 
     237  my $session_name = 'PHPSESSID'; # change this if needed 
     238 
     239  print "Content-type: text/plain\n\n"; 
     240   
     241  my $cgi = new CGI::Lite; 
     242   
     243  my $cookies = $cgi->parse_cookies; 
     244  if ($cookies->{$session_name}) { 
     245     my $session = PHP::Session->new($cookies->{$session_name}); 
     246     # now, try to print uid variable from PHP session 
     247     print "uid:",Dumper($session->get('uid')); 
     248  } else { 
     249     print "can't find session cookie $session_name"; 
     250  } 
     251 
     252 
    232253=head1 NOTES 
    233254 
  • PHP-Session/trunk/lib/PHP/Session/Serializer/PHP.pm

    r936 r1619  
    33use strict; 
    44use vars qw($VERSION); 
    5 $VERSION = 0.22
     5$VERSION = 0.24
    66 
    77sub _croak { require Carp; Carp::croak(@_) } 
     
    1414        state  => undef, 
    1515        stack  => [], 
    16         array  => [],           # array-ref of array-ref 
     16        array  => [],           # array-ref of hash-ref 
    1717    }, $class; 
    1818} 
     
    239239    '(N);',                     # null 
    240240    'b:([01]);',                # boolean 
     241    '[Rr]:(\d+);',              # reference count?  
    241242); 
    242243