~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to ext/standard/var_unserializer.c.orig

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by re2c 0.13.5 on Fri Jun 25 15:36:31 2010 */
 
1
/* Generated by re2c 0.13.5 on Fri Aug  6 19:14:17 2010 */
2
2
#line 1 "ext/standard/var_unserializer.re"
3
3
/*
4
4
  +----------------------------------------------------------------------+
18
18
  +----------------------------------------------------------------------+
19
19
*/
20
20
 
21
 
/* $Id: var_unserializer.c 300843 2010-06-29 00:58:31Z stas $ */
 
21
/* $Id: var_unserializer.c 301949 2010-08-06 22:23:10Z felipe $ */
22
22
 
23
23
#include "php.h"
24
24
#include "ext/standard/php_var.h"
212
212
        while (1) {
213
213
                cursor = (char)*p;
214
214
                if (cursor >= '0' && cursor <= '9') {
215
 
                        result = result * 10 + cursor - '0';
 
215
                        result = result * 10 + (size_t)(cursor - (unsigned char)'0');
216
216
                } else {
217
217
                        break;
218
218
                }